Releases: Wikia/go-commons
v0.2.6
What's Changed
- Update echo_logger.go to include "X-Original-Host" by @harnash in #71
- Bump moul.io/zapgorm2 from 1.1.3 to 1.3.0 by @dependabot in #70
- Bump github.com/labstack/echo/v4 from 4.9.1 to 4.11.4 by @dependabot in #69
- Bump gorm.io/gorm from 1.25.5 to 1.25.6 by @dependabot in #68
Full Changelog: v0.2.5...v0.2.6
DB metrics and tracing + dependencies bump
What's Changed
- Bump golang.org/x/net from 0.0.0-20220225172249-27dd8689420f to 0.20.0 by @dependabot in #65
- Bump github.com/go-playground/validator/v10 from 10.11.1 to 10.17.0 by @dependabot in #63
- Bump github.com/hashicorp/go-retryablehttp from 0.7.1 to 0.7.5 by @dependabot in #64
Full Changelog: v0.2.4...v0.2.5
Bugifx: properly set log in context
Previous change did not work since the access log callback function is called after all middlewares and handler done their job and it is too late to alter anything. We use BeforeNextFunc() to inject trace-id since this is the information we can uniformly extract. Rest is to refactoring.
Inject logger when using access log
When using access log middleware the whole context of the log is being injected into request so other functions/handlers can have all values that are extracted from the request added to the log. This way we have the same fields in access log entries as well as in application specific logs.
Update MySQL driver and GoRM
What's Changed
- Bump version gorm by @harnash in #37
- Bump gorm.io/driver/mysql from 1.1.2 to 1.3.2 by @dependabot in #38
New Contributors
- @dependabot made their first contribution in #38
Full Changelog: v0.2.0...v0.2.1
New middlewares for go-example-service
v0.2.0 Add middleware to embed logger into context (#36)
Add support for go-example-service
v0.1.5 Updated EchoLogger to use new echo.middleware (#35)
One module go-commons instead of submodules
Dealing with submodules is quite painful. Using one main module keep things quite simple and straightforward.