Skip to content

feat!: Add BRAINTRUST_CAPTURE_ATTACHMENTS env var option and captureAttachments logger option for all integrations - #2519

Merged
Luca Forstner (lforst) merged 4 commits into
v4from
lforst/dum-e/melbourne-016f9385a8
Oct 14, 2026
Merged

Luca Forstner (lforst) merged 4 commits into
v4from
lforst/dum-e/melbourne-016f9385a8

Conversation

@lforst

@lforst Luca Forstner (lforst) commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Ref braintrustdata/braintrust-sdk-javascript#1841

Targets v4 (#2406).

  • Make automatic attachment capture opt-in across all integrations using the existing BRAINTRUST_CAPTURE_ATTACHMENTS environment variable; previously, integrations applied this setting inconsistently.
  • Add initLogger({ captureAttachments: true | false }) to override the environment setting. Loggers created with setCurrent: false keep their own policy, independent of the global logger.
  • When capture is disabled, omit inline media and skip unnecessary decoding, copying, and buffering. Preserve text, metadata, metrics, remote URLs, and explicitly logged attachments.
  • Keep the owning logger’s policy throughout asynchronous calls and streaming responses, with unit, integration, and replay tests covering these behaviors.

Validation: build, type checks, lint, and 628 focused unit tests pass.
The affected replay e2e scenarios pass across three runs; production forwarding and generated Braintrust links were verified.
The full replay suite also hits existing v4 failures in the Git timestamp fixture and HarnessAgent fixture; both were reproduced on an untouched v4 checkout.

@lforst Luca Forstner (lforst) mentioned this pull request Sep 24, 2026
14 of 16 tasks
Luca Forstner (lforst) added a commit that referenced this pull request Sep 24, 2026
Luca Forstner (lforst) added a commit that referenced this pull request Sep 28, 2026
Luca Forstner (lforst) added a commit that referenced this pull request Sep 28, 2026
Luca Forstner (lforst) added a commit that referenced this pull request Sep 28, 2026
Luca Forstner (lforst) added a commit that referenced this pull request Oct 1, 2026
Luca Forstner (lforst) added a commit that referenced this pull request Oct 1, 2026
…reAttachments` logger option for all integrations
@lforst
Luca Forstner (lforst) force-pushed the lforst/dum-e/melbourne-016f9385a8 branch from a4af22e to c11a384 Compare October 13, 2026 13:11
@lforst
Luca Forstner (lforst) changed the base branch from main to v4 October 13, 2026 13:11
@lforst

Copy link
Copy Markdown
Member Author

Codex (@codex) review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T14:45:28.469112Z 95d5c1a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 95d5c1a148

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread js/src/instrumentation/providers/eve-instrumentation.ts Outdated
@lforst
Luca Forstner (lforst) merged commit fb38418 into v4 Oct 14, 2026
57 checks passed
@lforst
Luca Forstner (lforst) deleted the lforst/dum-e/melbourne-016f9385a8 branch October 14, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants