| Name | Type | Description |
|---|---|---|
connection_string | str | None | Default: NoneApplication Insights connection string. |
enable_content_recording | bool | None | Default: NoneWhether to capture message/content payloads
(default |
project_endpoint | str | None | Default: None |
credential | Any | None | Default: None |
provider_name | str | None | Default: None |
agent_id | str | None | Default: None |
trace_all_langgraph_nodes | bool | None | Default: None |
message_keys | list[str] | tuple[str, ...] | None | Default: None |
message_paths | list[str] | tuple[str, ...] | None | Default: None |
auto_configure_azure_monitor | bool | None | Default: None |
trace_state | bool | None | Default: None |
max_state_size | int | None | Default: None |
tracer | AzureAIOpenTelemetryTracer | None | Default: None |
Enable auto-injection of Azure tracer into callback managers.
When called, every new BaseCallbackManager instance and every callback
manager created through LangGraph's helper factories will automatically
include an AzureAIOpenTelemetryTracer in its inheritable handlers.
Each parameter falls back to an environment variable when not supplied:
APPLICATION_INSIGHTS_CONNECTION_STRINGAZURE_TRACING_GEN_AI_CONTENT_RECORDING_ENABLEDAZURE_AI_PROJECT_ENDPOINT (or
FOUNDRY_PROJECT_ENDPOINT when the former is not set)AZURE_TRACING_PROVIDER_NAMEAZURE_TRACING_AGENT_IDAZURE_TRACING_ALL_LANGGRAPH_NODESOTEL_MESSAGE_KEYS (comma-separated)OTEL_MESSAGE_PATHS (comma-separated)OTEL_AUTO_CONFIGURE_AZURE_MONITOROTEL_TRACE_LANGGRAPH_STATEOTEL_MAX_STATE_SIZEAzure AI project endpoint for connection string resolution.
Azure credential used with project endpoint resolution.
Default provider name for emitted GenAI spans
(default "azure.ai.openai").
Default agent identifier for emitted spans.
Whether to trace all LangGraph nodes
(default True).
State keys that hold messages (default ["messages"]).
Dotted paths for nested message locations.
Set to True to enable automatic
Azure Monitor configuration (default False; hosted agents
configure their own TracerProvider). In non-hosted usage,
leaving this as False means Azure Monitor is not configured
automatically, so spans may not export unless your application
configures a TracerProvider and exporter separately.
Whether to capture the full LangGraph state on each
agent node span (default False).
Maximum character length for serialized state
(default 32768).
Pre-built tracer to inject directly. When supplied, all other configuration arguments are ignored.