Kevin Wan
c837dc21bb
refactoring tracing interceptors. ( #1009 )
...
* refactor tracing interceptors
* add stream tracing interceptor
3 years ago
Kevin Wan
96a35ecf1a
fix #1006 ( #1008 )
...
* use sdktrace instead of trace for opentelemetry to avoid conflicts
* disable opentelemetry for right now
* use os.ModeSymlink instead of fs.ModeSymlink for backward compatibility
3 years ago
Kevin Wan
bdec5f2349
use sdktrace instead of trace for opentelemetry to avoid conflicts ( #1005 )
...
* use sdktrace instead of trace for opentelemetry to avoid conflicts
* disable opentelemetry for right now
3 years ago
shenbaise9527
bc92b57bdb
api文件中使用group时生成的handler和logic的包名应该为group的名字 ( #545 )
...
* api文件中使用group时生成的handler和logic的包名应该为group的名字
* Update genhandlers.go
fix errors.
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
3 years ago
neosu
d8905b9e9e
add api template file ( #1003 )
3 years ago
neosu
dec6309c55
add opentelemetry test ( #1002 )
3 years ago
Kevin Wan
10805577f5
reorg imports, format code ( #1000 )
3 years ago
SunJun
a4d8286e36
开启otel后,tracelog自动获取otle的traceId和spanId ( #946 )
...
* 开启otel后,tracelog自动获取otle的traceId和spanId
* 去除opentelemetry判断
* 通过 IsRecording 判断span是否活跃
3 years ago
anqiansong
84d2b64e7c
optimize unit test ( #999 )
3 years ago
Kevin Wan
6476da4a18
rest log with context ( #998 )
3 years ago
Kevin Wan
79eab0ea2f
refactor to shorter config name ( #997 )
3 years ago
Allen Liu
3b683fd498
feat: change logger to traceLogger for getting traceId when recovering ( #374 )
3 years ago
toven tang
d179b342b2
修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。 ( #960 )
...
* 修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。
* 修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。
Co-authored-by: toven <toven@advan.onaliyun.com>
3 years ago
Kevin Wan
58874779e7
move opentelemetry into trace package, and refactoring ( #996 )
...
* move opentelemetry into trace package, and refactoring
* rename rewritten package names
3 years ago
anqiansong
8829c31c0d
Feature goctl error wrap ( #995 )
...
* Add `Wrap` in file errorx.go
* Wrap error with `GoctlError`
* format code
* Refactor package `env` to `version`
* Refactor package `IsVersionGatherThan`
* fix typo
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
b42f3fa047
disable codecov github checks ( #993 )
3 years ago
Kevin Wan
9bdadf2381
fix golint issues ( #992 )
3 years ago
Kevin Wan
20f665ede8
implement k8s service discovery ( #988 )
...
* implement k8s service discovery
* simplify code
* use default namespace if not provided
* disable codecov bot comment
* ignore adhoc dir
* simplify building target in NewClient
* reformat code
* Fix filepath (#990 )
* format code, and reorg imports (#991 )
* add more unit test
Co-authored-by: anqiansong <anqiansong@gmail.com>
3 years ago
Kevin Wan
0325d8e92d
format code, and reorg imports ( #991 )
3 years ago
anqiansong
2125977281
Fix filepath ( #990 )
3 years ago
Vee Zhang
c26c187e11
remote handler blank line when .HasRequest is false ( #986 )
3 years ago
Kevin Wan
4ef1859f0b
use codecov action v1 ( #985 )
3 years ago
Kevin Wan
407a6cbf9c
format coding style ( #983 )
3 years ago
Vee Zhang
76fc1ef460
httpx.Error response without body ( #982 )
...
* httpx.Error support response without body
* fix doc
3 years ago
miaogaolin
423955c55f
format code ( #979 )
3 years ago
Kevin Wan
db95b3f0e3
configurable for load and stat statistics logs ( #980 )
3 years ago
Kevin Wan
4bee60eb7f
add go-zero users ( #978 )
3 years ago
Kevin Wan
7618139dad
refactor ( #977 )
3 years ago
Kevin Wan
6fd08027ff
update go version to 1.14 for github workflow ( #976 )
3 years ago
chenquan
b9e268aae8
Update Codecov `action` ( #974 )
3 years ago
Kevin Wan
4c1bb1148b
fix #971 ( #972 )
3 years ago
Kevin Wan
50a6bbe6b9
format coding style ( #970 )
3 years ago
chenquan
dfb3cb510a
Fix context error in grpc ( #962 )
...
* Fix context error in rpc
* Add a test case
* Optimize judgment conditions
* Add customized breaker errors for the client and server
* Update method signature
* Delete customized breaker errors
* Delete the wrong test case
3 years ago
Kevin Wan
519db812b4
format coding style ( #969 )
3 years ago
anqiansong
3203f8e06b
Fix issues ( #965 )
3 years ago
chenquan
b71ac2042a
Add a test case for database code generation `tool` ( #961 )
3 years ago
Kevin Wan
d0f9e57022
fix #957 ( #959 )
3 years ago
SunJun
aa68210cde
修复stream拦截器tracer名问题 ( #944 )
3 years ago
zhoushuguang
280e837c9e
rest otel support ( #943 )
3 years ago
Kevin Wan
f669e1226c
fix #556 ( #938 )
3 years ago
Kevin Wan
cd15c19250
fix lint errors ( #937 )
3 years ago
neosu
5b35fa17de
add the opentelemetry tracing ( #908 )
...
* add the opentelemetry tracing
* fix the error sampler config
* 添加stream的链路跟踪
* fix the error field name
3 years ago
Kevin Wan
9672298fa8
make sure setting code happen before callback in rest ( #936 )
3 years ago
Kevin Wan
bf3ce16823
fix #820 ( #934 )
3 years ago
anqiansong
189721da16
Fix issues ( #931 )
...
* fix #929
* fix #925
* add test case
* update model README
* fix #929
* fix #929
* fix #929
* refactor dir
* Adding todo comments
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
Kevin Wan
a523ab1f93
update slack invite url ( #933 )
3 years ago
Kevin Wan
7ea8b636d9
add go-zero users ( #928 )
3 years ago
anqiansong
b2fea65faa
Optimize model naming ( #910 )
...
* add unit test
* fix #907
* format code
* format code
* format code
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong
a1fe8bf6cd
fix missing `updateMethodTemplateFile` ( #924 )
3 years ago
Kevin Wan
67ee9e4391
add unit test ( #921 )
3 years ago