Uh oh!
There was an error while loading. Please reload this page.
ref(core)!: Rename gen_ai.system to gen_ai.provider.name - #22814
Conversation
size-limit report 📦
|
8eee8e4 to
6d11e37CompareEmit the `gen_ai.provider.name` attribute from `@sentry/conventions` instead of the deprecated `gen_ai.system` alias across all AI integrations (OpenAI, Anthropic, Google GenAI, LangChain, Bedrock, Vercel AI). The OTel-based Vercel AI processor now renames the SDK-native `gen_ai.system` attribute to match. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6d11e37 to
6d7fbebCompare| /* eslint-disable max-lines */ | ||
| // `@sentry/conventions` marks several gen_ai attributes (e.g. `GEN_AI_SYSTEM`, `GEN_AI_TOOL_*`, | ||
| // `GEN_AI_REQUEST_AVAILABLE_TOOLS`) as deprecated in favour of newer semconv names. We intentionally | ||
| // keep emitting the current names so these spans match the OTel-based (v6) integration and what the | ||
| // Sentry product consumes today; migrating to the new names is a separate, coordinated change. | ||
| /* eslint-disable typescript-eslint/no-deprecated */ |
There was a problem hiding this comment.
Bug: The explanatory comment for the eslint-disable typescript-eslint/no-deprecated directive was removed, but the directive itself was kept, reducing code clarity and increasing future maintenance risk.
Severity: LOW
Suggested Fix
Restore the removed comment or add a new concise one explaining why deprecated attributes are intentionally used. This will clarify the purpose of the eslint-disable directive and prevent future maintenance issues.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.
Location: packages/server-utils/src/vercel-ai/vercel-ai-dc-subscriber.ts#L1-L2
Potential issue: In `vercel-ai-dc-subscriber.ts`, a comment explaining the intentional
use of deprecated symbols was removed, while the `/* eslint-disable
typescript-eslint/no-deprecated */` directive remains. The file still uses deprecated
symbols like `GEN_AI_REQUEST_AVAILABLE_TOOLS` to maintain compatibility with an
OTel-based integration. Without the comment, future developers may not understand the
reason for disabling the lint rule and could mistakenly remove it, which would cause
build failures. This is inconsistent with other files in the codebase where similar
explanatory comments are retained alongside the directive.
Did we get this right? 👍 / 👎 to inform future reviews.
Uh oh!
There was an error while loading. Please reload this page.
Switches all AI integrations from the deprecated
gen_ai.systemattribute to its@sentry/conventionsreplacementgen_ai.provider.name.Part of #22482