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

github-actions bot commented Jan 22, 2026

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(anthropic): Set system instruction attribute by alexander-alderman-webb in #5353
  • 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
  • feat(google-genai): Set system instruction attribute by alexander-alderman-webb in #5354
  • feat(langchain): Set system instruction attribute by alexander-alderman-webb in #5357
  • feat(openai-agents): Set system instruction attribute by alexander-alderman-webb in #5355
  • feat(pydantic-ai): Set system instruction attribute by alexander-alderman-webb in #5356

Internal Changes 🔧

  • ci(release): Fix changelog-preview permissions by BYK in #5368
  • 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.

cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

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

Nice! LGTM, see one comment

@constantinius constantinius enabled auto-merge (squash) January 23, 2026 12:52
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.

# Copy conversation_id from scope to span data if this is an AI span
conversation_id = scope.get_conversation_id()
if conversation_id:
has_ai_op = "gen_ai.operation.name" in self._data
Copy link

Choose a reason for hiding this comment

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

Hardcoded string used instead of existing constant

Low Severity

The code uses a hardcoded string "gen_ai.operation.name" instead of the existing constant SPANDATA.GEN_AI_OPERATION_NAME. The SPANDATA import is already present (line 8), and other integrations like anthropic.py and google_genai/__init__.py use this constant. Using the constant would be more maintainable and consistent with the rest of the codebase.

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.

3 participants