Releases: snabble/go-logging
v2.12.1
Upgrade to otel v1.17.0.
v2.12.0
What's Changed
- Update otel stack by @g-w in #82
- Bump go.opentelemetry.io/otel/trace from 1.15.0 to 1.15.1 by @dependabot in #84
- Bump go.opentelemetry.io/otel/sdk from 1.15.0 to 1.15.1 by @dependabot in #83
- Bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp from 0.41.0 to 0.41.1 by @dependabot in #86
- Bump github.com/uptrace/opentelemetry-go-extra/otellogrus from 0.1.21 to 0.2.0 by @dependabot in #87
- Bump github.com/sirupsen/logrus from 1.9.0 to 1.9.1 by @dependabot in #88
- Bump github.com/sirupsen/logrus from 1.9.1 to 1.9.2 by @dependabot in #89
- Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 by @dependabot in #90
- Bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp from 0.41.1 to 0.42.0 by @dependabot in #91
- Bump github.com/uptrace/opentelemetry-go-extra/otellogrus from 0.2.0 to 0.2.1 by @dependabot in #92
- Bump go.opentelemetry.io/otel/sdk from 1.15.1 to 1.16.0 by @dependabot in #93
- Bump github.com/stretchr/testify from 1.8.3 to 1.8.4 by @dependabot in #94
- Bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3 by @dependabot in #95
- Bump github.com/uptrace/opentelemetry-go-extra/otellogrus from 0.2.1 to 0.2.2 by @dependabot in #96
- Skip access log entries if path is excluded by @g-w in #97
Full Changelog: v2.11.1...v2.12.0
v2.11.1
What's Changed
- Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 by @dependabot in #71
- more tracing by @tnicolaisen-snabble in #76
- Include context in call logs by @g-w in #77
Full Changelog: v2.11.0...v2.11.1
v2.10.0 - More tracing - a new home for tracex
With this release we've added our internal tracex library to go-logging.
The tracex module centralizes all dependencies on otel packages, so we don't get different otel versions scattered around in our codebase.
The two modules were tightly coupled, so it makes sense to move tracex into go-logging.
Internal ticket: BACKEND-1078
Other changes:
- Upgrade to go 1.19
- Loads of dependency updates
- We've removed support for stack traces (errorsx).
No API changes, hence it's a patch level version. Everything should work as before!
v2.9.1 - Lower log-level for health requests to debug
Instead of logging GET requests to /health
that resulting in a success HTTP status code to info, these requests are now logged with debug. Other HTTP methods and 400+ HTTP status codes are logged like before.
v2.9.0 - Removing GORM logging
To reduce the footprint of go-logging
remove all dependencies to GORM.
v2.8.0 - Tracing enabled as default
This minor release enables tracing in the default configuration.
v2.7.4 - Tracing release
Add tracing based on opentelemetry:
- Enable tracing by configuration
// Configures the global LOG instance with tracing enabled.
err := SetWithConfig("info", &LogConfig{EnableTraces: true, EnableTextLogging: false})
- LogMiddleware adds tracing to the http pipeline
- trace_id and span_id is added to the structured log
v2.7.3
v2.7.2
Reports stack traces in a stacktrace
field, when the error is created by one of the following modules:
- golang.org/x/xerrors
- https://github.com/pingcap/errors
- https://github.com/pkg/errors
- https://github.com/go-errors/errors
The implementation is based on https://github.com/getsentry/sentry-go