Repository navigation
feat: Make span origins spec compliant #25602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -27,7 +27,7 @@ it('captures Vercel AI v6 spans via @sentry/cloudflare vercelAIIntegration', asy | |||||
| status: 'ok', | ||||||
| attributes: expect.objectContaining({ | ||||||
| 'sentry.op': { type: 'string', value: 'gen_ai.invoke_agent' }, | ||||||
| 'sentry.origin': { type: 'string', value: 'auto.vercelai.channel' }, | ||||||
| 'sentry.origin': { type: 'string', value: 'auto.ai.vercelai' }, | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. l/m: if we want to double down on the "the second part must be a span op category", this should be
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a good point, but we use
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yup totally fine with a follow up or fwiw with leaving these slightly unaligned to the op all together. My suspicion is, we added the origin back when those ops were still called |
||||||
| [GEN_AI_OPERATION_NAME]: { type: 'string', value: 'invoke_agent' }, | ||||||
| [GEN_AI_USAGE_INPUT_TOKENS]: { type: 'integer', value: 10 }, | ||||||
| [GEN_AI_USAGE_OUTPUT_TOKENS]: { type: 'integer', value: 20 }, | ||||||
|
|
@@ -40,7 +40,7 @@ it('captures Vercel AI v6 spans via @sentry/cloudflare vercelAIIntegration', asy | |||||
| status: 'ok', | ||||||
| attributes: expect.objectContaining({ | ||||||
| 'sentry.op': { type: 'string', value: 'gen_ai.generate_content' }, | ||||||
| 'sentry.origin': { type: 'string', value: 'auto.vercelai.channel' }, | ||||||
| 'sentry.origin': { type: 'string', value: 'auto.ai.vercelai' }, | ||||||
| [GEN_AI_OPERATION_NAME]: { type: 'string', value: 'generate_content' }, | ||||||
| }), | ||||||
| }), | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.