Kevin Wan
10e7922597
feat: opentelemetry integration, removed self designed tracing ( #1111 )
...
* feat: opentelemetry integration, removed self designed tracing
* feat: support zipkin on opentelemetry integration
* feat: support zipkin on opentelemetry integration, enable it in conf
* style: format code
* fix: support logx without exporter configured
* fix: check return values
* refactor: simplify code
* refactor: simplify opentelemetry integration
* ci: fix staticcheck errors
2021-10-03 20:53:50 +08:00
Kevin Wan
ed15ca04f4
fix: opentelemetry traceid not correct ( #1108 )
2021-10-01 22:44:37 +08:00
Kevin Wan
65905b914d
ci: add reviewdog ( #1096 )
2021-09-29 13:09:20 +08:00
Kevin Wan
872c50b71a
chore: make comment accurate ( #1055 )
2021-09-17 11:11:42 +08:00
Kevin Wan
f4bb9f5635
fix test error on ubuntu ( #1048 )
2021-09-15 13:31:20 +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
Kevin Wan
fbf2eebc42
add Errorv/Infov/Slowv ( #909 )
2021-08-13 18:28:39 +08:00
Kevin Wan
1fb356f328
refactor goctl ( #902 )
2021-08-11 18:04:42 +08:00
市民233
0b0406f41a
fix: 解决golint 部分警告 ( #897 )
...
* feat: 解决goreportcard的警报
ps: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
* feat: 优化golint警告,将processFieldPrimitiveWithJsonNumber 改成 processFieldPrimitiveWithJSONNumber
unmarshaler.go:248:23: method processFieldPrimitiveWithJsonNumber should be processFieldPrimitiveWithJSONNumber
* feat: 添加 WithCanonicalKeyFunc 注释
* feat: 添加DisableStat的注释
* feat: 添加 RegisterGoctlHome 注释
* feat: 添加 PostgreSqlJoin 注释
* feat: 解决goline警告should not use basic type string as key in context.WithValue问题
* feat: 解决golint警告信息: should not use basic type string as key in context.WithValue
* fix: 定义自定义字段类型,导致go test fail 问题
* update: 恢复原有测试用例
* fix golint warning
2021-08-11 17:57:20 +08:00
Kevin Wan
872e75e10d
add logx.DisableStat() to disable stat logs ( #893 )
...
* add logx.DisableStat() to disable stat logs
* refactor logx code
2021-08-10 16:55:38 +08:00
Bo-Yi Wu
73906f996d
chore(format): change by gofumpt tool ( #697 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-05-18 14:43:09 +08:00
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
2021-04-15 19:49:17 +08:00
Kevin Wan
c0db8d017d
gofmt logs ( #574 )
2021-03-20 16:40:09 +08:00
TonyWang
52b4f8ca91
add timezone and timeformat ( #572 )
...
* add timezone and timeformat
* rm time zone and keep time format
Co-authored-by: Tony Wang <tonywang.data@gmail.com>
2021-03-20 16:36:19 +08:00
Kevin Wan
56ad4776d4
fix misspelling ( #513 )
2021-02-23 13:53:19 +08:00
Kevin Wan
226513ed60
fix golint issues in core/logx ( #496 )
2021-02-20 22:45:58 +08:00
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
2021-02-09 13:50:21 +08:00
wayne
ec2a9f2c57
fix tracelogger_test TestTraceLog ( #271 )
2020-12-10 17:04:57 +08:00
kevin
695ea69bfc
add logx.Alert
2020-10-17 19:11:01 +08:00
kevin
fe3739b7f3
fix golint issues
2020-10-16 11:13:55 +08:00
kevin
c32759d735
make tests race-free
2020-10-10 15:36:07 +08:00
kevin
be39133dba
fix data race in tests
2020-10-09 19:13:10 +08:00
kevin
3733b06f1b
fix data race in tests
2020-10-09 14:15:27 +08:00
kevin
09b7625f06
add more tests
2020-10-07 22:54:51 +08:00
kevin
6db294b5cc
add more tests
2020-10-07 19:33:52 +08:00
kevin
ce42281568
add more tests
2020-10-01 17:27:21 +08:00
kevin
40230d79e7
fix data race
2020-10-01 16:58:07 +08:00
kevin
ba7851795b
add more tests
2020-10-01 16:49:39 +08:00
kevin
be9c48da7f
add tracing logs in server side and client side
2020-09-22 17:34:39 +08:00
kevin
797a90ae7d
remove unnecessary tag
2020-09-21 22:41:14 +08:00
kevin
f3c367a323
add fatal to stderr
2020-08-25 16:59:14 +08:00
kevin
8745039877
move lang.Must into logx.Must to make sure output fatal message as json
2020-08-14 15:08:06 +08:00
kevin
c57051ce63
use strings.Contains instead of strings.Index
2020-08-11 17:18:51 +08:00
kevin
0a7e0cce77
update package reference
2020-08-08 16:40:10 +08:00
kevin
7e3a369a8f
initial import
2020-07-26 17:09:05 +08:00