Skip to content
semconv.com
↑↓ move↵ openUse with your agent →

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

History

    Definition sourceRegistry docsJSONUse with your agent →