Releases: mailgun/holster
Releases · mailgun/holster
v4.8.0
v4.7.1
What's Changed
- Simplify log level usage by converting log level parameters to constant enum type. This type mirrors
logrus.Level
exactly so it can be easily converted (e.g.level := tracing.Level(logrus.GetLevel())
). - Breaking Change: This is a breaking change to the
tracing.WithLevel()
option. - Fix documentation around meaning of level numbers.
- Tag spans with
log.level=<name>
andlog.levelNum=<n>
. - Using
StartScopeError()
will also tag span in error status.
v4.7.0
What's Changed
- Breaking Change to
tracing
package.- Changed
InitTracing()
signature to reference optionaltracing
-specific options, instead of OpenTelemetry-specific options. This allows more flexibility to extend configuration withintracing
.
- Changed
- Log level tracing.
- Defaults to log level set in Logrus.
- Use variants of
StartScopeInfo()
,StartScopeDebug()
, etc. - Spans created with lesser severity will be dropped from the trace.
- See
tracing/README.md
for details.
- Add
TypedError
for describing anerror
with type classification.tracing
- Add Prometheus metrics.
v4.6.0
What's Changed
- PIP-1989: Re-add random utils functions by @ToutPetitAdrien in #119
New Contributors
- @ToutPetitAdrien made their first contribution in #119
Full Changelog: v4.5.1...v4.6.0
Release v4.5.1
What's Changed
Full Changelog: v4.5.0...v4.5.1
Release v4.5.0
v4.4.0
v4.3.3
v4.3.2
v4.3.1
What's Changed
- Simplify most common use case of OTel initialization using
tracing.NewResource()
.
before:
res, err := resource.Merge(
resource.Default(),
resource.NewWithAttributes(
semconv.SchemaURL,
semconv.ServiceNameKey.String("My service"),
semconv.ServiceVersionKey.String("v1.0.0"),
),
)
ctx, tracer, err := tracing.InitTracing(ctx, "github.com/myrepo/myservice", sdktrace.WithResource(res))
after:
res, err := tracing.NewResource("My service", "v1.0.0")
ctx, tracer, err := tracing.InitTracing(ctx, "github.com/myrepo/myservice", sdktrace.WithResource(res))