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