Documentation ¶ Overview ¶ Package http provides HTTP middleware for metry that creates root spans and propagates trace context. Index ¶ func Handler(provider *metry.Provider, next http.Handler, operationName string) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Handler ¶ func Handler(provider *metry.Provider, next http.Handler, operationName string) http.Handler Handler wraps next with OpenTelemetry instrumentation: a root span is created for each request (or the incoming trace context is extracted from W3C headers), and the span is named after operationName using explicit provider dependencies. Types ¶ This section is empty. Source Files ¶ View all Source files handler.go Click to show internal directories. Click to hide internal directories.