tracer

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package tracer provides optional OpenTelemetry route middleware.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t *powertracer.Tracer, options ...Options) httpapi.Middleware

New records an internal route span using the supplied OTel-backed Tracer. It skips HTTP streaming, matching the reference. Use WrapHandler inside Streamify for a span covering the entire streaming invocation instead. Register it before Compress to observe headers left by that middleware. The Lambda wrapper or application owns flushing and provider shutdown.

Types

type Options

type Options struct {
	DisableCaptureResponse bool
}

Jump to

Keyboard shortcuts

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