Documentation
¶
Overview ¶
Package otel provides an OpenTelemetry trace handler for gollem.
It bridges gollem's trace events to OpenTelemetry spans, allowing integration with any OTel-compatible backend (Jaeger, Zipkin, OTLP, etc.).
Basic usage with global TracerProvider:
agent := gollem.New(client, gollem.WithTrace(otel.New()))
With explicit TracerProvider:
agent := gollem.New(client, gollem.WithTrace(
otel.New(otel.WithTracerProvider(tp)),
))
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*handler)
Option is a functional option for configuring the OTel handler.
func WithTracerProvider ¶
func WithTracerProvider(tp otelTrace.TracerProvider) Option
WithTracerProvider sets an explicit TracerProvider. If not set, the global TracerProvider is used.
Click to show internal directories.
Click to hide internal directories.