Kevin Wan
861dcf2f36
update codecov settings ( #1010 )
2021-09-07 18:09:53 +08:00
Kevin Wan
c837dc21bb
refactoring tracing interceptors. ( #1009 )
...
* refactor tracing interceptors
* add stream tracing interceptor
2021-09-07 17:58:22 +08:00
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
2021-09-07 15:38:40 +08:00
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
2021-09-07 12:02:41 +08:00
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>
2021-09-07 11:03:04 +08:00
neosu
d8905b9e9e
add api template file ( #1003 )
2021-09-07 10:16:10 +08:00
neosu
dec6309c55
add opentelemetry test ( #1002 )
2021-09-07 09:26:45 +08:00
Kevin Wan
10805577f5
reorg imports, format code ( #1000 )
2021-09-06 14:56:46 +08:00
SunJun
a4d8286e36
开启otel后,tracelog自动获取otle的traceId和spanId ( #946 )
...
* 开启otel后,tracelog自动获取otle的traceId和spanId
* 去除opentelemetry判断
* 通过 IsRecording 判断span是否活跃
2021-09-06 14:31:54 +08:00
anqiansong
84d2b64e7c
optimize unit test ( #999 )
2021-09-06 14:20:21 +08:00
Kevin Wan
6476da4a18
rest log with context ( #998 )
2021-09-05 22:58:42 +08:00
Kevin Wan
79eab0ea2f
refactor to shorter config name ( #997 )
2021-09-05 22:43:15 +08:00
Allen Liu
3b683fd498
feat: change logger to traceLogger for getting traceId when recovering ( #374 )
2021-09-05 22:40:10 +08:00
toven tang
d179b342b2
修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。 ( #960 )
...
* 修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。
* 修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。
Co-authored-by: toven <toven@advan.onaliyun.com>
2021-09-05 22:27:59 +08:00
Kevin Wan
58874779e7
move opentelemetry into trace package, and refactoring ( #996 )
...
* move opentelemetry into trace package, and refactoring
* rename rewritten package names
2021-09-05 22:18:35 +08:00
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>
2021-09-05 21:57:44 +08:00
Kevin Wan
b42f3fa047
disable codecov github checks ( #993 )
2021-09-04 13:32:23 +08:00
Kevin Wan
9bdadf2381
fix golint issues ( #992 )
2021-09-04 12:16:30 +08:00
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>
2021-09-04 10:27:08 +08:00
Kevin Wan
0325d8e92d
format code, and reorg imports ( #991 )
2021-09-04 10:08:49 +08:00
anqiansong
2125977281
Fix filepath ( #990 )
2021-09-04 08:15:22 +08:00
Vee Zhang
c26c187e11
remote handler blank line when .HasRequest is false ( #986 )
2021-09-03 07:25:04 +08:00
Kevin Wan
4ef1859f0b
use codecov action v1 ( #985 )
2021-09-02 19:07:30 +08:00
Kevin Wan
407a6cbf9c
format coding style ( #983 )
2021-09-01 19:52:56 +08:00
Vee Zhang
76fc1ef460
httpx.Error response without body ( #982 )
...
* httpx.Error support response without body
* fix doc
2021-09-01 19:33:33 +08:00
miaogaolin
423955c55f
format code ( #979 )
2021-08-31 17:15:36 +08:00
Kevin Wan
db95b3f0e3
configurable for load and stat statistics logs ( #980 )
2021-08-31 17:14:31 +08:00
Kevin Wan
4bee60eb7f
add go-zero users ( #978 )
2021-08-31 16:08:33 +08:00
Kevin Wan
7618139dad
refactor ( #977 )
2021-08-31 12:04:09 +08:00
Kevin Wan
6fd08027ff
update go version to 1.14 for github workflow ( #976 )
2021-08-31 11:46:22 +08:00
chenquan
b9e268aae8
Update Codecov action
( #974 )
2021-08-31 11:25:58 +08:00
Kevin Wan
4c1bb1148b
fix #971 ( #972 )
2021-08-29 11:38:34 +08:00
Kevin Wan
50a6bbe6b9
format coding style ( #970 )
2021-08-28 12:11:11 +08:00
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
2021-08-28 12:07:14 +08:00
Kevin Wan
519db812b4
format coding style ( #969 )
2021-08-27 23:09:47 +08:00
anqiansong
3203f8e06b
Fix issues ( #965 )
2021-08-27 15:05:54 +08:00
chenquan
b71ac2042a
Add a test case for database code generation tool
( #961 )
2021-08-27 06:50:09 +08:00
Kevin Wan
d0f9e57022
fix #957 ( #959 )
2021-08-26 16:47:28 +08:00
SunJun
aa68210cde
修复stream拦截器tracer名问题 ( #944 )
2021-08-24 15:17:53 +08:00
zhoushuguang
280e837c9e
rest otel support ( #943 )
2021-08-24 10:04:12 +08:00
Kevin Wan
f669e1226c
fix #556 ( #938 )
2021-08-22 23:36:35 +08:00
Kevin Wan
cd15c19250
fix lint errors ( #937 )
2021-08-22 10:24:32 +08:00
neosu
5b35fa17de
add the opentelemetry tracing ( #908 )
...
* add the opentelemetry tracing
* fix the error sampler config
* 添加stream的链路跟踪
* fix the error field name
2021-08-22 10:03:56 +08:00
Kevin Wan
9672298fa8
make sure setting code happen before callback in rest ( #936 )
2021-08-22 09:27:20 +08:00
Kevin Wan
bf3ce16823
fix #820 ( #934 )
2021-08-19 22:48:21 +08:00
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>
2021-08-19 22:47:45 +08:00
Kevin Wan
a523ab1f93
update slack invite url ( #933 )
2021-08-19 22:25:41 +08:00
Kevin Wan
7ea8b636d9
add go-zero users ( #928 )
2021-08-19 10:39:47 +08:00
anqiansong
b2fea65faa
Optimize model naming ( #910 )
...
* add unit test
* fix #907
* format code
* format code
* format code
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-08-18 17:09:34 +08:00
anqiansong
a1fe8bf6cd
fix missing updateMethodTemplateFile
( #924 )
2021-08-18 12:23:43 +08:00