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
Click to show internal directories.
Click to hide internal directories.