Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

proxy.golang.org : github.com/vincentfree/opentelemetry/otelzerolog

Package otelzerolog provides a function to extend structured logs using zerolog with the Open Telemetry trace related context. The github.com/rs/zerolog zerolog.Event is decorated with standard metadata extracted from the trace.SpanContext, a traceID, spanID and additional information is injected into a log. The initialization uses file level configuration to set defaults for the function to use. SetLogOptions can overwrite the defaults. When the configuration is done AddTracingContext and AddTracingContextWithAttributes decorate zerolog logs with data from the trace context. A zeroLog.Event can be passed by using log.Info().Func(AddTracingContext(span)).Msg("") for example. Functions Types Structs import "github.com/vincentfree/opentelemetry/otelzerolog"

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/vincentfree/opentelemetry/otelzerolog
Keywords: logging, logs, middleware, opentelemetry, opentelemetry-go, traces, tracing
License: Apache-2.0
Latest release: 10 months ago
First release: 10 months ago
Namespace: github.com/vincentfree/opentelemetry
Stars: 2 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 18 days ago

    Loading...
    Readme
    Loading...