Skip to content

Conversation

91pavan
Copy link

@91pavan 91pavan commented Aug 26, 2025

Fixes #

Changes

Add a role attribute to GenAI agent spans to help categorize the type of "agent" for various use cases.
Note: The agent's assigned role may differ from its name.

Note: if the PR is touching an area that is not listed in the existing areas, or the area does not have sufficient domain experts coverage, the PR might be tagged as experts needed and move slowly until experts are identified.

Merge requirement checklist

  • CONTRIBUTING.md guidelines followed.
  • Change log entry added, according to the guidelines in When to add a changelog entry.
    • If your PR does not need a change log, start the PR title with [chore]
  • Links to the prototypes or existing instrumentations (when adding or changing conventions)

@@ -240,6 +240,9 @@ groups:
- ref: gen_ai.agent.description
requirement_level:
conditionally_required: If provided by the application.
- ref: gen_ai.agent.role
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to add it to span.gen_ai.invoke_agent.client?

Also please add a changelog as well, thanks

@alexmojaki
Copy link

I would like to see a real life example where id, name, role, and description all exist and are different.

@jsuereth jsuereth moved this from Untriaged to Awaiting codeowners approval in Semantic Conventions Triage Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Awaiting codeowners approval
Development

Successfully merging this pull request may close these issues.

3 participants