Skip to content

GenAI: mark sampling-relevant attributes#2994

Merged
lmolkova merged 3 commits intoopen-telemetry:mainfrom
lmolkova:gen-ai-sampling-relevant
Jan 12, 2026
Merged

GenAI: mark sampling-relevant attributes#2994
lmolkova merged 3 commits intoopen-telemetry:mainfrom
lmolkova:gen-ai-sampling-relevant

Conversation

@lmolkova
Copy link
Copy Markdown
Member

Mark the following attributes sampling-relevant on all GenAI spans they appear

  • gen_ai.operation.name
  • gen_ai.provider.name
  • gen_ai.request.model
  • server.address
  • server.port

(also add gen_ai.provider.name to embeddings spans - it seems it has been forgotten)

@lmolkova lmolkova force-pushed the gen-ai-sampling-relevant branch from 6ac16cc to 05eb438 Compare October 28, 2025 19:28
@lmolkova lmolkova moved this from Untriaged to Awaiting codeowners approval in Semantic Conventions Triage Oct 28, 2025
@github-actions
Copy link
Copy Markdown

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions Bot added the Stale label Nov 13, 2025
Comment thread model/gen-ai/spans.yaml
@github-actions github-actions Bot removed the Stale label Nov 16, 2025
@github-actions
Copy link
Copy Markdown

This PR has been labeled as stale due to lack of activity. It will be automatically closed if there is no further activity over the next 14 days.

@github-actions github-actions Bot added the Stale label Nov 30, 2025
@github-actions github-actions Bot closed this Dec 7, 2025
@lmolkova lmolkova reopened this Dec 30, 2025
@lmolkova lmolkova removed the Stale label Dec 30, 2025
Copy link
Copy Markdown
Contributor

@JWinermaSplunk JWinermaSplunk left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Contributor

@wrisa wrisa left a comment

Choose a reason for hiding this comment

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

Added a couple of comments. Rest LGTM.

Comment thread docs/gen-ai/gen-ai-agent-spans.md
Comment thread model/gen-ai/spans.yaml
@lmolkova lmolkova moved this from Awaiting codeowners approval to Needs More Approval in Semantic Conventions Triage Jan 10, 2026
@lmolkova lmolkova added this pull request to the merge queue Jan 12, 2026
Merged via the queue into open-telemetry:main with commit 2945b0b Jan 12, 2026
18 checks passed
@lmolkova lmolkova deleted the gen-ai-sampling-relevant branch January 12, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:gen-ai enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants