gen_ai.main_agent.id
DevelopmentGenAI registrystringas of v1.44.0
The unique and stable identifier of the top-level Generative AI agent in the process
For main agents, this SHOULD be the provider-assigned stable identifier of the agent resource such as AWS Bedrock agent ARN or GCP Agent Registry identifier.
Instrumentation MUST NOT generate gen_ai.main_agent.id from an in-memory or process-local identifier. If no stable identifier is available, the agent entity is not emitted, and instrumentation continues to report gen_ai.agent.name at the span level when relevant.
Examples
- asst_5j66UpCpwteGg4YSxUnt7lPY
- arn:aws:bedrock:us-east-1:123:agent/42
- urn:agent:projects-123:projects:123:locations:us-east1:aiplatform:reasoningEngines:456