getsentry / getsentry/sentry-javascript
Replace deprecated `gen_ai.prompt` with `gen_ai.input.messages`
- Lingua principale
- TypeScript
- Stelle
- 8.7k
- Fork
- 1.8k
- Merge medio
- 1g 17h
- PR unite (30g)
- 515
Descrizione
`@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`]()
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- backend
- Tipo di issue
- Refactoring
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100