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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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