-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Note
The pull request "feat(vercel-ai): Add rerank support and fix token attribute mapping" was created by @sergical but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.
Summary
This PR adds support for the Vercel AI SDK rerank operation and fixes token attribute mapping to follow OpenTelemetry semantic conventions.
Changes
Core (@sentry/core):
- Add
ai.rerankspan support in the Vercel AI span processor - Map
ai.usage.inputTokens/outputTokens→gen_ai.usage.input_tokens/output_tokens - Map
ai.response.avgOutputTokensPerSecond→ standardized attribute name - Add tests for rerank and token mapping
Node (@sentry/node):
- Add
reranktoINSTRUMENTED_METHODSto auto-enable telemetry for rerank operations
Checklist
- If you've added code that should be tested, please add tests.
- Ensure your code lints and the test suite passes (
yarn lint) & (yarn test).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels