Skip to content

Commit 6888da2

Browse files
lforstdelnerankrgylclaudepaultancre-bt
authored
Merge main into v4 (#2773)
Merges `main` at `7801fc33` into `v4`. - Ports service-tier tracking and LangChain capture controls through v4's provider registration and logger APIs. - Adds Eve 1.x event support while preserving v4's durable spans, turn metrics, and attachment capture policy. - Integrates LiveKit audio schema v3 and PII handling with v4's attachment APIs. - Preserves v4's runtime/export structure and removed CLI/integrations, and adapts the incoming tests to Vite+. Before the release metadata update, validated the workspace build, package type checks, lint, 2,611 core tests, Vitest wrapper tests, and Temporal tests. The full e2e replay passed: 73 files, 2,886 tests passed, and 10 skipped. The changed e2e scenarios passed three consecutive replay runs, with 2,046 tests passed in each of the two additional runs. Verified production forwarding and every generated log and experiment link against recorded traces in Braintrust. Also includes the 3.44.0 release metadata from main while keeping the old LangChain package removed. After that update, the workspace build, package type checks, 23 Temporal tests, and 746 replay tests passed. Verified all nine generated replay log links against traces in Braintrust. Use a merge commit for this PR to retain the `main` ancestry. --------- Co-authored-by: David Elner <david.elner@braintrustdata.com> Co-authored-by: Ankur Goyal <ankrgyl@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: paultancre-bt <paul.tancre@braintrustdata.com> Co-authored-by: Paul Tancre <paultancre@p-tancre.home> Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Paulo Martins <paulo.martins@nectir.io>
2 parents 9bc2e79 + 0e6e866 commit 6888da2

553 files changed

Lines changed: 213617 additions & 51013 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.changeset/add-fastmcp-tracing.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"braintrust": minor
3+
---
4+
5+
feat: Bump support for cloudflare agents

‎.changeset/fix-cursor-sdk-tracing.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/fix-logged-byte-stream-utf8.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"braintrust": minor
3+
---
4+
5+
feat(google-genai): Trace decision calls

‎.changeset/light-plants-return.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"braintrust": major
44
---
55

6-
feat!: Add `BRAINTRUST_CAPTURE_ATTACHMENTS` env var option and `captureAttachments` logger option for all integrations
6+
feat!: Add `BRAINTRUST_AUTO_CAPTURE_ATTACHMENTS` env var option and `autoCaptureAttachments` logger option for all integrations

‎.changeset/mcp-handler-tracing.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/remove-flush-async.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"braintrust": major
33
---
44

5-
ref!: Remove `flushAsync` option
5+
ref!: Remove `asyncFlush` option

‎dev-packages/seinfeld/src/cassette.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ export interface RecordedRequest {
4545

4646
/** A single recorded response, as it appeared on the wire. */
4747
export interface RecordedResponse {
48+
/** Original wire chunk sizes and inter-chunk delays for interactive streams. */
49+
streamChunks?: Array<{
50+
size: number;
51+
delayMs: number;
52+
/** Complete Connect request frames received before this response chunk. */
53+
requestFrames?: number;
54+
}>;
4855
status: number;
4956
statusText?: string;
5057
headers: Record<string, string>;

‎dev-packages/seinfeld/src/format/v1.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ const recordedRequestSchema = z.object({
3030
});
3131

3232
const recordedResponseSchema = z.object({
33+
streamChunks: z
34+
.array(
35+
z.object({
36+
size: z.number().int().positive(),
37+
delayMs: z.number().nonnegative(),
38+
requestFrames: z.number().int().nonnegative().optional(),
39+
}),
40+
)
41+
.optional(),
3342
status: z.number().int().min(100).max(599),
3443
statusText: z.string().optional(),
3544
headers: z.record(z.string()),

0 commit comments

Comments
 (0)