opentelemetry
v1.85.0
google.golang.org/grpc/experimental/opentelemetry
Documentation
pkg.go.dev ↗Package opentelemetry is EXPERIMENTAL and will be moved to stats/opentelemetry package in a later release.
Types
TraceOptions
type TraceOptions struct {
// TracerProvider is the OpenTelemetry tracer which is required to
// record traces/trace spans for instrumentation. If unset, tracing
// will not be recorded.
TracerProvider trace.TracerProvider
// TextMapPropagator propagates span context through text map carrier.
// If unset, tracing will not be recorded.
TextMapPropagator propagation.TextMapPropagator
}
TraceOptions contains the tracing settings for OpenTelemetry instrumentation.