getsentry / getsentry/sentry-javascript
Replace deprecated `gen_ai.prompt` with `gen_ai.input.messages`
- Langage dominant
- TypeScript
- Étoiles
- 8.7k
- Forks
- 1.8k
- Merge moyen
- 1 j 17 h
- PR mergées (30 j)
- 515
Description
`@sentry/conventions` deprecates `gen_ai.prompt` in favor of `gen_ai.input.messages`. `gen_ai.prompt` holds a raw prompt string (legacy Anthropic Completions API); `gen_ai.input.messages` expects a stringified array of structured message objects (`[{role, parts: [{type, content}]}]`).
Entails wrapping the legacy prompt into the new structured message format and emitting it under the new attribute. Affects the Anthropic AI integration.
We can likely postpone this until after the major, if we do it at all, since there are still discussions about handling this in Relay.
References:
* [`gen_ai.prompt`]()
* [`gen_ai.input.messages`]()
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start in the Anthropic AI integration and review the linked gen_ai.prompt and gen_ai.input.messages convention references. Confirm how the legacy raw prompt is currently emitted, then verify that the structured message attribute contains the wrapped prompt and that the deprecated attribute is no longer emitted. Relay handling and the major-release timing remain open questions in the issue.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- typescript
- Domaine
- backend
- Type d'issue
- Refactorisation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100