Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

eve provider: `capture` key crashes eve ≥0.62 at boot, and `eve.turn` spans have no input/output

Chiusa
#2,551 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
observability

Direzione di ricerca

Start in js/src/instrumentation/plugins/eve-provider.ts at createEveInstrumentationProvider and inspect the handleTurnStarted and handleTurnTerminal paths. Reproduce with the listed eve init/add/build flow, then verify the provider boots without the rejected key and that eve.turn records the user message as input and final assistant reply as output.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Versions: braintrust 3.35.0 (latest), eve 0.69.0, Node 24, deployed on Vercel. Installed via eve add instrumentation/braintrust.

1. eve refuses to start with the provider

createEveInstrumentationProvider (js/src/instrumentation/plugins/eve-provider.ts) returns capture: "content" alongside tracePolicy, kept "for backwards compatibility". eve ≥0.62 rejects the key by presence (Object.hasOwn(provider, "capture")), so every request fails at startup:

Error: The instrumentation provider "instrumentation/braintrust" no longer supports `capture`. Use `tracePolicy` to configure content capture.
    at registerInstrumentationProvider (…/eve.mjs)
Node.js process exited with exit status: 1.

Repro: npx eve@latest init x && cd x && eve add instrumentation/braintrust && eve build, then send any request to the deployment.

Removing the key (const { capture, ...provider } = braintrustEveInstrumentation(...)) makes it boot.

2. eve.turn spans carry no input or output

With the key removed, eve.step spans log the full prompt and the model response, but eve.turn spans have input and output null. handleTurnStarted / handleTurnTerminal record lineage and metadata only. The older braintrustEveHook logged the user message and final reply on the turn span, and Braintrust features that read the turn row (Topics, facets) now see empty rows.

Expected
  • No capture key when the host eve version supports tracePolicy (or drop it, since eve <0.62 is the only consumer).
  • eve.turn input = the turn's user message, output = the final assistant reply, as the hook integration did.
Lingua principale
TypeScript
Stelle
28
Fork
15
Merge medio
1g 23h
PR unite (30g)
71

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di braintrustdata/braintrust-sdk-javascript

Tutte le issue di braintrustdata/braintrust-sdk-javascript

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.