Skip to content

v0.1.12

Choose a tag to compare

@AdityaSaroj AdityaSaroj released this 20 Feb 10:39
· 60 commits to main since this release
6ccd7bf

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.