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-http/otelmiddleware

Package otelmiddleware provides middleware for wrapping http.Server handlers with Open Telemetry tracing support. The trace.Span is decorated with standard metadata extracted from the http.Request injected into the middleware. the basic information is extracted using the OpenTelemetry semconv package. When a span gets initialized it uses the following slice of trace.SpanStartOption The slice can be extended using the WithAttributes TraceOption function. After these options are applied a new span is created and the middleware will pass the http.ResponseWriter and http.Request to the next http.Handler. Functions Types Structs

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/vincentfree/opentelemetry-http/otelmiddleware
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-http
Stars: 2 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 11 days ago

    Loading...
    Readme
    Loading...