Documentation
¶
Overview ¶
Package tracing wires the control plane into OpenTelemetry, giving an OTel observability fan-out (Langfuse, Phoenix, Jaeger, Datadog, any OTLP backend) for free: this package contains almost no custom exporter logic because otlptracegrpc/otlptracehttp already read every standard OTEL_EXPORTER_OTLP_* env var (endpoint, headers for hosted backends' auth tokens, TLS, compression, timeout) per the OTel spec. Any backend that speaks OTLP works without a single line of runkite-specific config.
Disabled by default (zero-dependency spirit): if OTEL_EXPORTER_OTLP_ENDPOINT / OTEL_EXPORTER_OTLP_TRACES_ENDPOINT is unset, Init is a no-op and every Tracer() call returns the OTel API's built-in no-op tracer -- no background connection attempts, no overhead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init configures the global TracerProvider from standard OTEL_* env vars. Returns a shutdown func to flush/close on exit (always non-nil, always safe to call/defer even when tracing was never enabled).
func Traceparent ¶
Traceparent extracts a run's W3C traceparent header value from a span's context, for embedding in the RunAssignment sent to a runner (see transport.TraceContext) -- real trace propagation instead of a fake hand-rolled ID, so a runner's own spans (e.g. LangChain's OTel callback handler) become children of this run's span in whatever backend is configured, not an orphaned, disconnected trace.
Types ¶
This section is empty.