New Features
- add logc package, use it like
logc.Info(ctx, msg)
- support debug level in logx
- support caller skip in logx
- add color for debug logs
- add
AddGlobalFields
for logc and logx - add
logger.WithFields
method in logx - support unmarshaling string into map in
httpx.Parse
- support customizing timeout for redis blpop
- support unmarshaling types that implements
encoding.TextUnmarshaler
, likeuuid.UUID
- support disabling trace for specified span names
What's Changed
- feat: support caller skip in logx by @kevwan in #2401
- chore: add more tests by @kevwan in #2409
- feat(goctl):Add ignore-columns flag by @anqiansong in #2407
- chore: add more tests by @kevwan in #2410
- fix goctl help message by @MarkJoyMa in #2414
- feat: add log debug level by @MarkJoyMa in #2411
- refactor: redis error for prometheus metric label by @zhoushuguang in #2412
- cleanup: deprecated field and func by @demoManito in #2416
- fix: fix log out-of-order output and cross-file output by @chenquan in #2424
- chore: replace fmt.Fprint by @kevwan in #2425
- feat: add color to debug by @chenquan in #2433
- chore: gofumpt by @kevwan in #2439
- refactor: adjust http request slow log format by @chenquan in #2440
- fix #2435 by @bensonfx in #2442
- Readme Tweak by @a0v0 in #2436
- fix(goctl): fix the unit test bug of goctl by @chenquan in #2458
- feat: add string to map in httpx parse method by @pipi-lv in #2459
- feat: add logc package, support AddGlobalFields for both logc and logx. by @kevwan in #2463
- chore: sort methods by @kevwan in #2470
- fix: add more tests by @pipi-lv in #2473
- feat(redis):add timeout method to extend blpop by @Suyghur in #2472
- chore: better shedding algorithm, make sure recover from shedding by @kevwan in #2476
- chore: refactor to reduce duplicated code by @kevwan in #2477
- fix #2343 by @re-dylan in #2349
- fix: etcd reconnecting problem by @kevwan in #2478
- fix(mongo): fix file name generation errors by @foliet in #2479
- chore(deps): bump go.mongodb.org/mongo-driver from 1.10.2 to 1.10.3 by @dependabot in #2484
- chore: remove init if possible by @kevwan in #2485
- chore(deps): bump google.golang.org/grpc from 1.49.0 to 1.50.0 by @dependabot in #2487
- fix a few function names on comments by @cuishuang in #2496
- fix: replace Infof() with Errorf() in DurationInterceptor (#2495) by @Suyghur in #2497
- feat(goctl): better generate the api code of typescript by @foliet in #2483
- token limit support context by @sado0823 in #2335
- chore: remove unnecessary code by @kevwan in #2499
- chore(deps): bump go.opentelemetry.io/otel/sdk from 1.10.0 to 1.11.0 by @dependabot in #2504
- chore: sqlx's histogram metric name is different from redis by @swliao425 in #2505
- chore: fix some naming problems by @foliet in #2500
- chore(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.10.0 to 1.11.0 by @dependabot in #2510
- chore(deps): bump go.opentelemetry.io/otel/exporters/zipkin from 1.10.0 to 1.11.0 by @dependabot in #2511
- fix(goctl): Fix mongo insert tpl by @anqiansong in #2512
- chore(deps): bump go.opentelemetry.io/otel/exporters/jaeger from 1.10.0 to 1.11.0 by @dependabot in #2514
- chore: add golangci-lint config file by @kevwan in #2519
- chore: fix lint errors by @kevwan in #2520
- Fix the wrong key about FindOne in mongo of goctl. by @wuleiming2009 in #2523
- chore(deps): bump google.golang.org/grpc from 1.50.0 to 1.50.1 by @dependabot in #2527
- Fix typo by @gokure in #2531
- chore: add more tests by @kevwan in #2536
- feat: support uuid.UUID in mapping by @kevwan in #2537
- chore(action): upgrade actions/stale & actions/setup-go & codecov/codecov-action by @chenquan in #2521
- fix(goctl): Fix issues by @anqiansong in #2543
- fix: redis's pipeline logs are not printed completely by @swliao425 in #2538
- feat: remove info log when disable log by @chowyu12 in #2525
- chore: adjust rpc comment format by @chenquan in #2501
- feat(trace): support for disabling tracing of specified
spanName
by @chenquan in #2363 - chore: refactor by @kevwan in #2545
- feat: add logger.WithFields by @kevwan in #2546
New Contributors
- @demoManito made their first contribution in #2416
- @bensonfx made their first contribution in #2442
- @a0v0 made their first contribution in #2436
- @pipi-lv made their first contribution in #2459
- @Suyghur made their first contribution in #2472
- @re-dylan made their first contribution in #2349
- @foliet made their first contribution in #2479
- @cuishuang made their first contribution in #2496
- @wuleiming2009 made their first contribution in #2523
- @gokure made their first contribution in #2531
Full Changelog: v1.4.1...v1.4.2