Skip to content

feat(spans): send gen_ai spans using the span v2 protocol#2141

Merged
Litarnus merged 2 commits into
masterfrom
gen-ai-span-v2
Jun 29, 2026
Merged

feat(spans): send gen_ai spans using the span v2 protocol#2141
Litarnus merged 2 commits into
masterfrom
gen-ai-span-v2

Conversation

@Litarnus

Copy link
Copy Markdown
Contributor

Adds support for the SpanV2 protocol for gen_ai spans.

When a transaction contains gen_ai spans, they will be serialized in a different format to work around the limitations of the old protocol. The envelope will contain two different items, the first one is the transaction with regular spans and the second one is just gen_ai spans

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0d19e9a. Configure here.

Comment thread src/Serializer/EnvelopItems/TransactionItem.php Outdated
Comment thread src/Serializer/EnvelopItems/TransactionItem.php Outdated
Comment thread src/Serializer/EnvelopItems/TransactionItem.php Outdated

@giortzisg giortzisg left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚀

Comment thread src/Serializer/EnvelopItems/TransactionItem.php
Comment thread src/Serializer/EnvelopItems/TransactionItem.php Outdated
@Litarnus Litarnus merged commit 9f5c290 into master Jun 29, 2026
50 checks passed
@Litarnus Litarnus deleted the gen-ai-span-v2 branch June 29, 2026 13:53
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