tracing

package
v0.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTracingFromEnv

func NewTracingFromEnv(ctx context.Context, stdout io.Writer, headerAttributeMapping map[string]string) (tracing.Tracing, error)

NewTracingFromEnv configures OpenTelemetry tracing based on environment variables and optional header attribute mapping.

Parameters:

  • headerAttributeMapping: maps HTTP headers to otel span attributes (e.g. map["x-session-id"]="session.id"). If nil, no header mapping is applied.

Returns a tracing graph that is noop when disabled.

Types

type Shutdown

type Shutdown interface {
	Shutdown(context.Context) error
}

Directories

Path Synopsis
Package api provides types for OpenTelemetry tracing support, notably to reduce chance of cyclic imports.
Package api provides types for OpenTelemetry tracing support, notably to reduce chance of cyclic imports.
Package openinference provides OpenInference semantic conventions for OpenTelemetry tracing.
Package openinference provides OpenInference semantic conventions for OpenTelemetry tracing.
openai
Package openai provides OpenInference semantic conventions hooks for OpenAI instrumentation used by the ExtProc router filter.
Package openai provides OpenInference semantic conventions hooks for OpenAI instrumentation used by the ExtProc router filter.

Jump to

Keyboard shortcuts

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