middleware

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ScopeName is the instrumentation scope name.
	ScopeName = "request"
)

Variables

This section is empty.

Functions

func OtelChiMiddleware

func OtelChiMiddleware() func(http.Handler) http.Handler

OtelChiMiddleware returns middleware that will trace incoming requests for the chi web framework. The service parameter should describe the name of the (virtual) server handling the request.

func OtelGinMiddleware

func OtelGinMiddleware() gin.HandlerFunc

OtelGinMiddleware returns middleware that will trace incoming requests for the gin web framework. The service parameter should describe the name of the (virtual) server handling the request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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