Documentation
¶
Overview ¶
Package telemetry owns ghsync's OpenTelemetry tracing runtime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracing ¶
type Tracing struct {
// contains filtered or unexported fields
}
Tracing is an explicitly injected trace provider and W3C propagator. Tracing is disabled unless OTEL_TRACES_EXPORTER is explicitly set to otlp.
func NewTracing ¶
func NewTracing(ctx context.Context, options TracingOptions) (*Tracing, error)
NewTracing constructs the process trace pipeline. OTLP/HTTP exporter configuration is read from the standard OTEL_EXPORTER_OTLP_* environment variables by the OpenTelemetry exporter.
func (*Tracing) Propagator ¶
func (t *Tracing) Propagator() propagation.TextMapPropagator
Propagator returns the W3C Trace Context propagator. Baggage is deliberately excluded so internal baggage cannot be forwarded to GitHub.
func (*Tracing) Provider ¶
func (t *Tracing) Provider() trace.TracerProvider
Provider returns the explicitly owned trace provider.
type TracingOptions ¶
TracingOptions identifies one running command or role set.