Documentation
¶
Index ¶
Constants ¶
View Source
const EnvTracingSemConv = "AI_GATEWAY_TRACING_SEMCONV"
EnvTracingSemConv selects the semantic convention used to record span attributes. Unset selects the first entry in semConvs, preserving the behavior from before this variable existed.
Variables ¶
This section is empty.
Functions ¶
func NewTracingFromEnv ¶
func NewTracingFromEnv(ctx context.Context, stdout io.Writer, headerAttributeMapping map[string]string) (tracingapi.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["agent-session-id"]="session.id"). If nil, no header mapping is applied.
Returns a tracing graph that is noop when disabled.
Types ¶
This section is empty.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package httperr maps upstream HTTP status codes to the error identifiers each tracing semantic convention reports.
|
Package httperr maps upstream HTTP status codes to the error identifiers each tracing semantic convention reports. |
|
Package openinference provides OpenInference semantic conventions for OpenTelemetry tracing.
|
Package openinference provides OpenInference semantic conventions for OpenTelemetry tracing. |
|
cohere
Package cohere provides OpenInference semantic conventions hooks for Cohere instrumentation used by the ExtProc router filter.
|
Package cohere provides OpenInference semantic conventions hooks for Cohere instrumentation used by the ExtProc router filter. |
|
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. |
|
Package otelgenai implements the OpenTelemetry GenAI semantic conventions for span recording.
|
Package otelgenai implements the OpenTelemetry GenAI semantic conventions for span recording. |
|
Package tracingapi provides types for OpenTelemetry tracing support, notably to reduce chance of cyclic imports.
|
Package tracingapi provides types for OpenTelemetry tracing support, notably to reduce chance of cyclic imports. |
|
Package tracingenv provides environment variable parsing helpers shared by the tracing semantic convention implementations.
|
Package tracingenv provides environment variable parsing helpers shared by the tracing semantic convention implementations. |
Click to show internal directories.
Click to hide internal directories.