eve provider: `capture` key crashes eve ≥0.62 at boot, and `eve.turn` spans have no input/output
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- observability
Research direction
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.
Written by the indexing model from the issue text.
Description
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
capturekey when the host eve version supportstracePolicy(or drop it, since eve <0.62 is the only consumer). eve.turninput = the turn's user message, output = the final assistant reply, as the hook integration did.
- Dominant language
- TypeScript
- Stars
- 28
- Forks
- 14
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 71
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from braintrustdata/braintrust-sdk-javascript
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
braintrustdata/braintrust-sdk-javascript#2552 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
braintrustdata/braintrust-sdk-javascript#2527 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 65/100
braintrustdata/braintrust-sdk-javascript#2526 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 56/100
braintrustdata/braintrust-sdk-javascript#2482 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 68/100
braintrustdata/braintrust-sdk-javascript#2481 ·
Maintainers usually reply within 1 day
All issues in braintrustdata/braintrust-sdk-javascript
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
tomjn/coilbox-hub#454 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
api: spanner
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
googleapis/google-cloud-node#9513 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
SegmentedControl calls Math.random() during render, breaking Next.js cacheComponents prerenderingOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
mantinedev/mantine#9244 ·
Maintainers usually reply within 8 days