Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OTelMiddleware ¶ added in v0.1.3
type OTelMiddleware struct {
// contains filtered or unexported fields
}
OTelMiddleware wraps an http.Handler with OpenTelemetry instrumentation
func NewOTelMiddleware ¶ added in v0.1.3
func NewOTelMiddleware(handler http.Handler, serviceName, serviceVersion string) *OTelMiddleware
NewOTelMiddleware creates a new OpenTelemetry middleware
func (*OTelMiddleware) ServeHTTP ¶ added in v0.1.3
func (m *OTelMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the http.Handler interface
type PathMatcher ¶
PathMatcher defines an interface for checking if a path should be ignored
Click to show internal directories.
Click to hide internal directories.