otel

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package otel wires ARCP transports to OpenTelemetry trace context.

Index

Constants

View Source
const ExtensionsKey = "x-vendor.opentelemetry.tracecontext"

ExtensionsKey is the envelope.extensions key carrying the W3C traceparent + tracestate carrier per spec §15.

Variables

This section is empty.

Functions

func WrapTransport

func WrapTransport(t transport.Transport, opts Options) transport.Transport

WrapTransport returns a transport.Transport that propagates W3C trace context inside the envelope's extensions on send and starts matching spans on recv.

Types

type Options

type Options struct {
	TracerProvider trace.TracerProvider
	Propagator     propagation.TextMapPropagator
	FrameSpans     bool
	JobSpans       bool
	ToolCallSpans  bool
}

Options configures the OTel wrapper.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL