Versions in this module Expand all Collapse all v0 v0.0.1 Feb 18, 2026 Changes in this version + const ScopeName + const TracerKey + const Version + func NewMiddleware(serverName string) echo.MiddlewareFunc + func NewMiddlewareWithConfig(config Config) echo.MiddlewareFunc + func SpanNameFormatter(v Values) string + func SplitAddress(address string) (host string, port int, err error) + type AttributesFunc func(c *echo.Context, v *Values, attr []attribute.KeyValue) []attribute.KeyValue + type Config struct + MeterProvider metric.MeterProvider + MetricAttributes MetricAttributesFunc + Metrics MetricsRecorder + OnExtractionError OnErrorFunc + OnNextError OnErrorFunc + Propagators propagation.TextMapPropagator + ServerName string + Skipper middleware.Skipper + SpanEndAttributes AttributesFunc + SpanStartAttributes AttributesFunc + SpanStartOptions []oteltrace.SpanStartOption + TracerProvider oteltrace.TracerProvider + func (config Config) ToMiddleware() (echo.MiddlewareFunc, error) + type MetricAttributesFunc func(c *echo.Context, v *Values) []attribute.KeyValue + type Metrics struct + func NewMetrics(meter metric.Meter) (*Metrics, error) + func (m *Metrics) Record(ctx context.Context, v RecordValues) + type MetricsRecorder interface + Record func(c *echo.Context, v RecordValues) + type OnErrorFunc func(c *echo.Context, err error) + type RecordValues struct + Attributes []attribute.KeyValue + ExtractedValues Values + RequestDuration time.Duration + type Values struct + ClientAddress string + HTTPMethod string + HTTPMethodOriginal string + HTTPRequestBodySize int64 + HTTPResponseBodySize int64 + HTTPResponseStatusCode int + HTTPRoute string + NetworkPeerAddress string + NetworkPeerPort int + NetworkProtocolName string + NetworkProtocolVersion string + ServerAddress string + ServerPort int + URLPath string + URLScheme string + UserAgentOriginal string + func (v *Values) ExtractRequest(r *http.Request) error + func (v *Values) MetricAttributes() []attribute.KeyValue + func (v *Values) SpanEndAttributes() []attribute.KeyValue + func (v *Values) SpanStartAttributes() []attribute.KeyValue