telemetry

package
v0.80.5 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTelMiddleware

type OTelMiddleware struct {
	// contains filtered or unexported fields
}

func NewOTelMiddleware

func NewOTelMiddleware(config *server.ServerConfig) *OTelMiddleware

func (*OTelMiddleware) ErrorStatusMiddleware added in v0.80.4

func (m *OTelMiddleware) ErrorStatusMiddleware() echo.MiddlewareFunc

ErrorStatusMiddleware marks the current span as Error for any 4xx or 5xx response. otelecho only sets Error for 5xx (per OTel semantic conventions). This middleware must be registered after otelecho so it runs inside the span. The OTel SDK ignores attempts to downgrade from Error to Unset, so otelecho's subsequent status-setting for 4xx is a no-op.

func (*OTelMiddleware) Middleware

func (m *OTelMiddleware) Middleware() echo.MiddlewareFunc

Jump to

Keyboard shortcuts

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