Skip to content

Conversation

@constantinius
Copy link
Contributor

…ns on the Scope and apply it on the Span on `.finish()`
@linear
Copy link

linear bot commented Jan 22, 2026

@github-actions
Copy link
Contributor

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • feat(gen_ai): add function set_conversation_id and managing functions on the Scope and apply it on the Span on .finish() by constantinius in #5362

Internal Changes 🔧

  • ci: Fix path in AI integration tests by alexander-alderman-webb in #5347

🤖 This preview updates automatically when you update the PR.

@constantinius constantinius marked this pull request as ready for review January 22, 2026 09:42
@constantinius constantinius requested a review from a team as a code owner January 22, 2026 09:42
cursor[bot]

This comment was marked as outdated.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Set the conversation_id in the scope.
"""
scope = sentry_sdk.get_current_scope()
scope.set_conversation_id(conversation_id)
Copy link

Choose a reason for hiding this comment

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

Unused function added to codebase

Low Severity

The set_conversation_id function is defined but never imported or used anywhere in the codebase. A grep for this function shows it's only defined here and referenced in tests that use scope.set_conversation_id() directly instead. This function is not exported from the main sentry_sdk module and not imported by any integrations, making it dead code.

Fix in Cursor Fix in Web

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.

2 participants