You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Agent identity and environment
Agent identity in init: Set agent_id, agent_name, and env in init() or via TRACCIA_AGENT_ID, TRACCIA_AGENT_NAME, TRACCIA_ENV. They are sent on the trace resource and on the metrics resource so the platform shows the correct agent and environment.
get_agent_identity(): Returns the current resolved agent (id, name, env, project) for debugging or integration.
AgentIdentity: Canonical model in traccia.identity for agent id/name/type/env/project.
Multi-agent: For one process with multiple agents, set agent.id / agent.name per span with @observe(..., attributes={"agent.id": "...", "agent.name": "..."}); optionally set process-level agent in init for the orchestrator.
Default: If you don’t set agent id/name, the backend uses service.name (always set by the SDK), so traces still show a sensible agent. Prefer setting agent_id (and optionally agent_name, env) in init for a clear label.