Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTracerFromConfig ¶
NewTracerFromConfig creates a tracer from the given config. Returns NopTracer when Endpoint is empty (tracing disabled). The caller must defer the returned shutdown func.
Types ¶
type TracerConfig ¶
TracerConfig holds parameters for creating an OpenTelemetry tracer.
type TracerProvider ¶
type TracerProvider struct {
// contains filtered or unexported fields
}
TracerProvider wraps the OTel SDK tracer provider with OTLP gRPC export. Created via otlptracegrpc.New(); use Shutdown to flush and stop.
func NewTracerProvider ¶
func NewTracerProvider(ctx context.Context, cfg Config) (*TracerProvider, error)
Click to show internal directories.
Click to hide internal directories.