Skip to content

feat(cohere): Set gen_ai.operation.name attribute - #8355

Merged
alexander-alderman-webb merged 2 commits into
getsentry:masterfrom
faizansaiyed123:fix/7984-cohere-operation-name
Dec 2, 2026
Merged

alexander-alderman-webb merged 2 commits into
getsentry:masterfrom
faizansaiyed123:fix/7984-cohere-operation-name

Conversation

@faizansaiyed123

Copy link
Copy Markdown
Contributor

Summary

Adds the missing gen_ai.operation.name attribute to spans created by the Cohere integration.

Changes

  • Set gen_ai.operation.name to chat for both non-streaming and streaming chat operations.
  • Set gen_ai.operation.name to embeddings for embedding operations.
  • Added regression assertions to the existing Cohere integration tests to verify these attributes.

Testing

  • Updated six existing test cases covering chat, streaming chat, and embeddings, including tests with sensitive data collection disabled.
  • Tests have not yet been executed locally.

Related issue

@faizansaiyed123
faizansaiyed123 requested a review from a team as a code owner November 23, 2026 19:00
@alexander-alderman-webb alexander-alderman-webb changed the title feat(cohere): set gen_ai.operation.name feat(cohere): Set gen_ai.operation.name attribute Dec 2, 2026
@alexander-alderman-webb
alexander-alderman-webb merged commit d860464 into getsentry:master Dec 2, 2026
324 of 326 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cohere: Set gen_ai.operation.name

2 participants