http

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package http provides HTTP middleware for metry that creates root spans and propagates trace context.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL