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 ¶
Source Files
¶
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. |
Click to show internal directories.
Click to hide internal directories.