Telemetry, tracing, and monitoring components for AI agents
Actively maintained. Last release 6 weeks ago, commits in 11 of the last 26 weeks. A safe choice.
pip install microsoft-agents-a365-observability-coremicrosoft-agents-a365-observability-core
Telemetry, tracing, and monitoring components for AI agents built on OpenTelemetry. This package provides structured spans for agent invocation, tool execution, and LLM inference with context propagation and pluggable exporters.
Already using OpenTelemetry? This SDK detects an existing
TracerProviderand adds its processors to it — your spans flow to your existing backend (Azure Monitor, OTLP collector, vendor exporter, etc.) and, whenENABLE_A365_OBSERVABILITY_EXPORTERis enabled with a configuredtoken_resolver, also to the Agent 365 backend. See Integrating with existing OpenTelemetry for setup patterns and troubleshooting.
Installation
pip install microsoft-agents-a365-observability-core
Usage
For usage examples and detailed documentation, see the Observability documentation on Microsoft Learn.
Agent 365 OBS export authentication
When ENABLE_A365_OBSERVABILITY_EXPORTER is enabled, exports always use the
S2S OTLP route:
/observabilityService/tenants/{tenantId}/otlp/agents/{agentId}/traces?api-version=1
The deprecated use_s2s_endpoint option is ignored, even when set to False;
domain overrides change only the host. The exporter never falls back to
/observability and never reads delegated request-context tokens.
Provide an app-only OBS token_resolver(agent_id, tenant_id) for the exporting
agent identity. The resolver is invoked for each export batch and identity
group, so it should cache the acquired token and refresh near expiry. Empty
tokens or resolver failures fail that export batch without sending an HTTP
request or retrying on a delegated route. If the Agent 365 exporter is enabled
without a resolver, the existing fallback is kept and
nothing is sent to Agent 365.