From 9c7fadfa793992e80c6ecaea91ce79adb89b5811 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Mon, 23 Mar 2026 11:09:11 +0100 Subject: [PATCH 1/4] fix(e2e): Ensure prod forwarding works in CI --- .github/workflows/e2e-canary.yaml | 1 + .github/workflows/integration-tests.yaml | 2 + e2e/helpers/mock-braintrust-server.ts | 215 +++++++++++++++++- e2e/helpers/normalize.ts | 43 ++++ e2e/helpers/prod-forwarding.ts | 49 ++++ e2e/helpers/provider-runtime.mjs | 4 + e2e/helpers/scenario-harness.ts | 16 +- e2e/helpers/scenario-runtime.ts | 4 + .../__snapshots__/ai-sdk-v3.log-payloads.json | 104 ++++----- .../__snapshots__/ai-sdk-v4.log-payloads.json | 100 ++++---- .../__snapshots__/ai-sdk-v5.log-payloads.json | 184 +++++++-------- .../__snapshots__/ai-sdk-v6.log-payloads.json | 184 +++++++-------- .../__snapshots__/log-payloads.json | 88 +++---- .../__snapshots__/log-payloads.json | 64 +++--- .../__snapshots__/scenario.test.ts.snap | 4 +- .../__snapshots__/scenario.test.ts.snap | 20 +- .../__snapshots__/ai-sdk-v3.log-payloads.json | 102 ++++----- .../__snapshots__/ai-sdk-v4.log-payloads.json | 104 ++++----- .../__snapshots__/ai-sdk-v5.log-payloads.json | 170 +++++++------- .../__snapshots__/ai-sdk-v6.log-payloads.json | 172 +++++++------- .../__snapshots__/log-payloads.json | 106 ++++----- .../__snapshots__/log-payloads.json | 70 +++--- .../__snapshots__/log-payloads.json | 80 +++---- e2e/vitest.config.mts | 6 + e2e/vitest.setup.ts | 3 + 25 files changed, 1111 insertions(+), 784 deletions(-) create mode 100644 e2e/helpers/prod-forwarding.ts create mode 100644 e2e/vitest.setup.ts diff --git a/.github/workflows/e2e-canary.yaml b/.github/workflows/e2e-canary.yaml index 2903955c8..b3f25a8a1 100644 --- a/.github/workflows/e2e-canary.yaml +++ b/.github/workflows/e2e-canary.yaml @@ -32,6 +32,7 @@ jobs: env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} BRAINTRUST_API_KEY: ${{ secrets.BRAINTRUST_API_KEY }} + BRAINTRUST_E2E_PROJECT_NAME: ${{ secrets.BRAINTRUST_E2E_PROJECT_NAME }} GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index f30a1b487..c33138a71 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -51,6 +51,7 @@ jobs: timeout-minutes: 45 env: BRAINTRUST_API_KEY: ${{ secrets.BRAINTRUST_API_KEY }} + BRAINTRUST_E2E_PROJECT_NAME: ${{ secrets.BRAINTRUST_E2E_PROJECT_NAME }} ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} @@ -72,6 +73,7 @@ jobs: timeout-minutes: 45 env: BRAINTRUST_API_KEY: ${{ secrets.BRAINTRUST_API_KEY }} + BRAINTRUST_E2E_PROJECT_NAME: ${{ secrets.BRAINTRUST_E2E_PROJECT_NAME }} ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/e2e/helpers/mock-braintrust-server.ts b/e2e/helpers/mock-braintrust-server.ts index 2d589b4bd..802c32d52 100644 --- a/e2e/helpers/mock-braintrust-server.ts +++ b/e2e/helpers/mock-braintrust-server.ts @@ -6,6 +6,7 @@ import type { ServerResponse, } from "node:http"; import type { AddressInfo } from "node:net"; +import type { ProdForwarding } from "./prod-forwarding"; export type JsonValue = | null @@ -64,6 +65,12 @@ interface MockBraintrustServer { url: string; } +interface StartMockBraintrustServerOptions { + apiKey?: string; + prodForwarding?: ProdForwarding | null; + testRunId?: string; +} + const DEFAULT_API_KEY = "mock-braintrust-api-key"; function isRecord(value: unknown): value is Record { @@ -248,8 +255,11 @@ function capturedRequestFrom( } export async function startMockBraintrustServer( - apiKey = DEFAULT_API_KEY, + options: StartMockBraintrustServerOptions = {}, ): Promise { + const apiKey = options.apiKey ?? DEFAULT_API_KEY; + const prodForwarding = options.prodForwarding ?? null; + const testRunId = options.testRunId; const requests: CapturedRequest[] = []; const payloads: CapturedLogPayload[] = []; const events: CapturedLogEvent[] = []; @@ -266,6 +276,14 @@ export async function startMockBraintrustServer( >(); let serverUrl = ""; let xactCursor = 0; + const pendingProdForwarding = new Set>(); + + if (prodForwarding) { + projectsByName.set(prodForwarding.projectName, { + id: prodForwarding.projectId, + name: prodForwarding.projectName, + }); + } function nextXactId(): string { xactCursor += 1; @@ -296,11 +314,29 @@ export async function startMockBraintrustServer( return existing; } - const created = { id: randomUUID(), name }; + const created = { + id: + prodForwarding && name === prodForwarding.projectName + ? prodForwarding.projectId + : randomUUID(), + name, + }; projectsByName.set(name, created); return created; } + function upsertProject(project: { id: string; name: string }): { + id: string; + name: string; + } { + const created = { + id: project.id, + name: project.name, + }; + projectsByName.set(project.name, created); + return created; + } + function experimentForProject( project: { id: string; name: string }, name: string, @@ -326,6 +362,81 @@ export async function startMockBraintrustServer( return created; } + function upsertExperiment( + project: { id: string; name: string }, + experiment: { created: string; id: string; name: string }, + ): { + created: string; + id: string; + name: string; + projectId: string; + } { + const key = `${project.id}:${experiment.name}`; + const created = { + created: experiment.created, + id: experiment.id, + name: experiment.name, + projectId: project.id, + }; + experimentsByProjectAndName.set(key, created); + return created; + } + + function trackProdForwarding(promise: Promise): void { + pendingProdForwarding.add(promise); + promise.finally(() => { + pendingProdForwarding.delete(promise); + }); + } + + async function forwardProdRequest( + capturedRequest: CapturedRequest, + ): Promise { + if (!prodForwarding) { + throw new Error("prodForwarding is not enabled"); + } + + const baseUrl = capturedRequest.path.startsWith("/api/") + ? prodForwarding.appUrl + : prodForwarding.apiUrl; + const url = new URL(capturedRequest.path, baseUrl); + for (const [key, value] of Object.entries(capturedRequest.query)) { + url.searchParams.set(key, value); + } + + const headers = new Headers(); + for (const [key, value] of Object.entries(capturedRequest.headers)) { + if ( + key === "authorization" || + key === "connection" || + key === "content-length" || + key === "host" + ) { + continue; + } + + headers.set(key, value); + } + headers.set("authorization", `Bearer ${prodForwarding.apiKey}`); + + const response = await fetch(url, { + body: + capturedRequest.method === "GET" || capturedRequest.method === "HEAD" + ? undefined + : capturedRequest.rawBody, + headers, + method: capturedRequest.method, + }); + + if (!response.ok) { + throw new Error( + `prodForwarding failed for ${capturedRequest.method} ${capturedRequest.path}: ${response.status} ${response.statusText}`, + ); + } + + return response; + } + const server = createServer((req, res) => { void (async () => { try { @@ -340,8 +451,19 @@ export async function startMockBraintrustServer( req.headers, rawBody, ); + const recordedRequest = clone(capturedRequest); + if ( + prodForwarding && + testRunId && + recordedRequest.path === "/otel/v1/traces" && + recordedRequest.headers["x-bt-parent"] === + `project_name:${prodForwarding.projectName}` + ) { + recordedRequest.headers["x-bt-parent"] = + `project_name:${testRunId.toLowerCase().replace(/[^a-z0-9-]/g, "-")}`; + } - requests.push(capturedRequest); + requests.push(recordedRequest); if ( capturedRequest.method === "POST" && @@ -370,6 +492,32 @@ export async function startMockBraintrustServer( ? capturedRequest.jsonBody.project_name : "project"; + if (prodForwarding) { + try { + const forwardedResponse = + await forwardProdRequest(capturedRequest); + const forwardedBody = + (await forwardedResponse.json()) as JsonValue; + + if ( + isRecord(forwardedBody) && + isRecord(forwardedBody.project) && + typeof forwardedBody.project.id === "string" && + typeof forwardedBody.project.name === "string" + ) { + respondJson(res, 200, { + project: upsertProject({ + id: forwardedBody.project.id, + name: forwardedBody.project.name, + }), + }); + return; + } + } catch { + // Fall back to local registration so e2e assertions still run. + } + } + respondJson(res, 200, { project: projectForName(projectName), }); @@ -391,6 +539,45 @@ export async function startMockBraintrustServer( ? capturedRequest.jsonBody.experiment_name : "experiment"; const project = projectForName(projectName); + + if (prodForwarding) { + try { + const forwardedResponse = + await forwardProdRequest(capturedRequest); + const forwardedBody = + (await forwardedResponse.json()) as JsonValue; + + if ( + isRecord(forwardedBody) && + isRecord(forwardedBody.project) && + isRecord(forwardedBody.experiment) && + typeof forwardedBody.project.id === "string" && + typeof forwardedBody.project.name === "string" && + typeof forwardedBody.experiment.created === "string" && + typeof forwardedBody.experiment.id === "string" && + typeof forwardedBody.experiment.name === "string" + ) { + const forwardedProject = upsertProject({ + id: forwardedBody.project.id, + name: forwardedBody.project.name, + }); + const forwardedExperiment = upsertExperiment(forwardedProject, { + created: forwardedBody.experiment.created, + id: forwardedBody.experiment.id, + name: forwardedBody.experiment.name, + }); + + respondJson(res, 200, { + experiment: forwardedExperiment, + project: forwardedProject, + }); + return; + } + } catch { + // Fall back to local registration so e2e assertions still run. + } + } + const experiment = experimentForProject(project, experimentName); respondJson(res, 200, { @@ -437,6 +624,13 @@ export async function startMockBraintrustServer( if (payload) { persistPayload(payload); } + if (prodForwarding) { + trackProdForwarding( + forwardProdRequest(capturedRequest) + .then(() => undefined) + .catch(() => undefined), + ); + } respondJson(res, 200, { ok: true }); return; } @@ -445,6 +639,13 @@ export async function startMockBraintrustServer( capturedRequest.method === "POST" && capturedRequest.path === "/otel/v1/traces" ) { + if (prodForwarding) { + trackProdForwarding( + forwardProdRequest(capturedRequest) + .then(() => undefined) + .catch(() => undefined), + ); + } respondJson(res, 200, { ok: true }); return; } @@ -469,10 +670,12 @@ export async function startMockBraintrustServer( return { apiKey, - close: () => - new Promise((resolve, reject) => { + close: async () => { + await new Promise((resolve, reject) => { server.close((error) => (error ? reject(error) : resolve())); - }), + }); + await Promise.allSettled([...pendingProdForwarding]); + }, events, payloads, requests, diff --git a/e2e/helpers/normalize.ts b/e2e/helpers/normalize.ts index 9743b436a..20c7408d0 100644 --- a/e2e/helpers/normalize.ts +++ b/e2e/helpers/normalize.ts @@ -47,6 +47,8 @@ const DYNAMIC_HEADER_KEYS = new Set([ "x-request-id", ]); const PROVIDER_ID_KEYS = new Set(["itemId", "responseId", "toolCallId"]); +const PROJECT_ID_KEYS = new Set(["project_id", "projectId"]); +const PROJECT_NAME_KEYS = new Set(["project_name", "projectName"]); const HELPERS_DIR = path.dirname(fileURLToPath(import.meta.url)); const REPO_ROOT = path.resolve(HELPERS_DIR, "../..").replace(/\\/g, "/"); const STACK_FRAME_REPO_PATH_REGEX = @@ -304,6 +306,26 @@ function normalizeValue( return tokenFor(tokenMaps.xacts, value, "xact"); } + if (currentKey && PROJECT_ID_KEYS.has(currentKey)) { + if (UUID_REGEX.test(value)) { + tokenFor(tokenMaps.ids, value, "uuid"); + } + return ""; + } + + if (currentKey && PROJECT_NAME_KEYS.has(currentKey)) { + let consumedProjectNameToken = false; + value.replace(UUID_SUBSTRING_REGEX, (match) => { + tokenFor(tokenMaps.ids, match, "uuid"); + consumedProjectNameToken = true; + return match; + }); + if (!consumedProjectNameToken) { + tokenFor(tokenMaps.ids, `project_name:${value}`, "uuid"); + } + return ""; + } + if (currentKey && DYNAMIC_HEADER_KEYS.has(currentKey)) { return `<${currentKey}>`; } @@ -336,6 +358,27 @@ function normalizeValue( return ""; } + if (value.startsWith("project_id:")) { + const projectIdValue = value.slice("project_id:".length); + if (UUID_REGEX.test(projectIdValue)) { + tokenFor(tokenMaps.ids, projectIdValue, "uuid"); + } + return "project_id:"; + } + + if (value.startsWith("project_name:")) { + let consumedProjectNameToken = false; + value.replace(UUID_SUBSTRING_REGEX, (match) => { + tokenFor(tokenMaps.ids, match, "uuid"); + consumedProjectNameToken = true; + return match; + }); + if (!consumedProjectNameToken) { + tokenFor(tokenMaps.ids, value, "uuid"); + } + return "project_name:"; + } + const withNormalizedUuids = value.replace(UUID_SUBSTRING_REGEX, (match) => tokenFor(tokenMaps.ids, match, "uuid"), ); diff --git a/e2e/helpers/prod-forwarding.ts b/e2e/helpers/prod-forwarding.ts new file mode 100644 index 000000000..69175a0c6 --- /dev/null +++ b/e2e/helpers/prod-forwarding.ts @@ -0,0 +1,49 @@ +import { initLogger } from "braintrust"; + +const DEFAULT_PROJECT_NAME = "sdk-e2e-tests"; + +export interface ProdForwarding { + apiKey: string; + apiUrl: string; + appUrl: string; + projectId: string; + projectName: string; +} + +let prodForwarding: ProdForwarding | null = null; + +export function getProdForwarding(): ProdForwarding | null { + return prodForwarding; +} + +export async function initializeProdForwarding(): Promise { + const apiKey = process.env.BRAINTRUST_API_KEY; + if (!apiKey) { + prodForwarding = null; + return; + } + + const projectName = + process.env.BRAINTRUST_E2E_PROJECT_NAME || DEFAULT_PROJECT_NAME; + const logger = initLogger({ + apiKey, + appUrl: process.env.BRAINTRUST_APP_URL, + asyncFlush: false, + forceLogin: true, + projectName, + }); + const projectId = await logger.id; + const state = logger.loggingState; + + if (!state.apiUrl || !state.appUrl) { + throw new Error("Braintrust login did not resolve prodForwarding URLs"); + } + + prodForwarding = { + apiKey, + apiUrl: state.apiUrl, + appUrl: state.appUrl, + projectId, + projectName, + }; +} diff --git a/e2e/helpers/provider-runtime.mjs b/e2e/helpers/provider-runtime.mjs index bef40b467..b27f2f53b 100644 --- a/e2e/helpers/provider-runtime.mjs +++ b/e2e/helpers/provider-runtime.mjs @@ -19,6 +19,10 @@ export function getTestRunId() { } export function scopedName(base, testRunId = getTestRunId()) { + if (process.env.BRAINTRUST_E2E_PROJECT_NAME) { + return process.env.BRAINTRUST_E2E_PROJECT_NAME; + } + const suffix = testRunId.toLowerCase().replace(/[^a-z0-9-]/g, "-"); return `${base}-${suffix}`; } diff --git a/e2e/helpers/scenario-harness.ts b/e2e/helpers/scenario-harness.ts index f825facb7..bd7f2eb9c 100644 --- a/e2e/helpers/scenario-harness.ts +++ b/e2e/helpers/scenario-harness.ts @@ -64,15 +64,18 @@ function createTestRunId(): string { function getTestServerEnv( testRunId: string, server: { apiKey: string; url: string }, + prodForwardingProjectName: string, ): Record { return { BRAINTRUST_API_KEY: server.apiKey, BRAINTRUST_API_URL: server.url, BRAINTRUST_APP_URL: server.url, BRAINTRUST_APP_PUBLIC_URL: server.url, + BRAINTRUST_E2E_PROJECT_NAME: prodForwardingProjectName, BRAINTRUST_PROXY_URL: server.url, BRAINTRUST_E2E_RUN_ID: testRunId, BRAINTRUST_E2E_REPO_ROOT: REPO_ROOT, + BRAINTRUST_ORG_NAME: "mock-org", }; } @@ -220,9 +223,18 @@ interface ScenarioHarness { export async function withScenarioHarness( body: (harness: ScenarioHarness) => Promise, ): Promise { - const server = await startMockBraintrustServer(); + const { getProdForwarding } = await import("./prod-forwarding"); + const prodForwarding = getProdForwarding(); const testRunId = createTestRunId(); - const testEnv = getTestServerEnv(testRunId, server); + const server = await startMockBraintrustServer({ + prodForwarding, + testRunId, + }); + const testEnv = getTestServerEnv( + testRunId, + server, + prodForwarding?.projectName ?? "", + ); try { await body({ diff --git a/e2e/helpers/scenario-runtime.ts b/e2e/helpers/scenario-runtime.ts index afaf8ebbe..82e799669 100644 --- a/e2e/helpers/scenario-runtime.ts +++ b/e2e/helpers/scenario-runtime.ts @@ -23,6 +23,10 @@ export function getTestRunId(): string { } export function scopedName(base: string, testRunId = getTestRunId()): string { + if (process.env.BRAINTRUST_E2E_PROJECT_NAME) { + return process.env.BRAINTRUST_E2E_PROJECT_NAME; + } + const suffix = testRunId.toLowerCase().replace(/[^a-z0-9-]/g, "-"); return `${base}-${suffix}`; } diff --git a/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v3.log-payloads.json b/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v3.log-payloads.json index ac0f6ba91..a1739ba6f 100644 --- a/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v3.log-payloads.json +++ b/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v3.log-payloads.json @@ -17,7 +17,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -33,7 +33,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -54,7 +54,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -72,7 +72,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -113,7 +113,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -209,7 +209,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -223,7 +223,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -271,7 +271,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -291,7 +291,7 @@ "completion_tokens": 2, "prompt_tokens": 18 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -365,7 +365,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -379,7 +379,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -403,7 +403,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -421,7 +421,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -462,7 +462,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -481,7 +481,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -498,7 +498,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -512,7 +512,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -560,7 +560,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -580,7 +580,7 @@ "completion_tokens": 6, "prompt_tokens": 22 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -603,7 +603,7 @@ "promptTokens": 22 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -617,7 +617,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -641,7 +641,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -659,7 +659,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -720,7 +720,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -741,7 +741,7 @@ "prompt_tokens": 87, "tokens": 103 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -906,7 +906,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -920,7 +920,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -996,7 +996,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -1016,7 +1016,7 @@ "completion_tokens": 16, "prompt_tokens": 87 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1107,7 +1107,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1121,7 +1121,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1148,7 +1148,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -1177,7 +1177,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 11, @@ -1195,7 +1195,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1256,7 +1256,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 12, @@ -1277,7 +1277,7 @@ "prompt_tokens": 59, "tokens": 64 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1316,7 +1316,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1330,7 +1330,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1396,7 +1396,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 13, @@ -1416,7 +1416,7 @@ "completion_tokens": 5, "prompt_tokens": 59 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1507,7 +1507,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1521,7 +1521,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1545,7 +1545,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 14, @@ -1563,7 +1563,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1624,7 +1624,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 15, @@ -1643,7 +1643,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1660,7 +1660,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1674,7 +1674,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1740,7 +1740,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 16, @@ -1760,7 +1760,7 @@ "completion_tokens": 5, "prompt_tokens": 59 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1791,7 +1791,7 @@ "promptTokens": 59 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1805,7 +1805,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v4.log-payloads.json b/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v4.log-payloads.json index 3384e69d2..c7c920e13 100644 --- a/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v4.log-payloads.json +++ b/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v4.log-payloads.json @@ -17,7 +17,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -33,7 +33,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -54,7 +54,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -72,7 +72,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -113,7 +113,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -226,7 +226,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -240,7 +240,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -287,7 +287,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -307,7 +307,7 @@ "completion_tokens": 2, "prompt_tokens": 18 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -381,7 +381,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -395,7 +395,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -419,7 +419,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -437,7 +437,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -478,7 +478,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -497,7 +497,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -512,7 +512,7 @@ "finish_reason": {} }, "output": {}, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -526,7 +526,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -573,7 +573,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -593,7 +593,7 @@ "completion_tokens": 6, "prompt_tokens": 22 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -616,7 +616,7 @@ "promptTokens": 22 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -630,7 +630,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -654,7 +654,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -672,7 +672,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -733,7 +733,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -916,7 +916,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -930,7 +930,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1005,7 +1005,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -1025,7 +1025,7 @@ "completion_tokens": 16, "prompt_tokens": 87 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1116,7 +1116,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1130,7 +1130,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1165,7 +1165,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -1194,7 +1194,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 11, @@ -1212,7 +1212,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1273,7 +1273,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 12, @@ -1322,7 +1322,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1336,7 +1336,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1401,7 +1401,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 13, @@ -1421,7 +1421,7 @@ "completion_tokens": 5, "prompt_tokens": 59 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1512,7 +1512,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1526,7 +1526,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1550,7 +1550,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 14, @@ -1568,7 +1568,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1629,7 +1629,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 15, @@ -1648,7 +1648,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1664,7 +1664,7 @@ "city": "Paris" } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1678,7 +1678,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1743,7 +1743,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 16, @@ -1763,7 +1763,7 @@ "completion_tokens": 5, "prompt_tokens": 59 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1794,7 +1794,7 @@ "promptTokens": 59 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1808,7 +1808,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v5.log-payloads.json b/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v5.log-payloads.json index de2617546..8260b2f67 100644 --- a/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v5.log-payloads.json +++ b/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v5.log-payloads.json @@ -17,7 +17,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -33,7 +33,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -54,7 +54,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -72,7 +72,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -122,7 +122,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -241,7 +241,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -255,7 +255,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -301,7 +301,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -322,7 +322,7 @@ "prompt_tokens": 18, "tokens": 21 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -360,7 +360,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -374,7 +374,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -398,7 +398,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -416,7 +416,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -466,7 +466,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -485,7 +485,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -500,7 +500,7 @@ "finish_reason": {} }, "output": {}, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -514,7 +514,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -558,7 +558,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -579,7 +579,7 @@ "prompt_tokens": 22, "tokens": 29 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -605,7 +605,7 @@ "totalTokens": 29 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -619,7 +619,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -643,7 +643,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -661,7 +661,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -732,7 +732,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -1463,7 +1463,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1477,7 +1477,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1530,7 +1530,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -1551,7 +1551,7 @@ "prompt_tokens": 94, "tokens": 102 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1589,7 +1589,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1603,7 +1603,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1638,7 +1638,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -1728,7 +1728,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 11, @@ -1749,7 +1749,7 @@ "prompt_tokens": 133, "tokens": 141 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1787,7 +1787,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1801,7 +1801,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1868,7 +1868,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 12, @@ -1990,7 +1990,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 13, @@ -2011,7 +2011,7 @@ "prompt_tokens": 172, "tokens": 180 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2049,7 +2049,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2063,7 +2063,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2162,7 +2162,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 14, @@ -2316,7 +2316,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 15, @@ -2337,7 +2337,7 @@ "prompt_tokens": 211, "tokens": 219 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2375,7 +2375,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2389,7 +2389,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2520,7 +2520,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 16, @@ -2549,7 +2549,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 17, @@ -2567,7 +2567,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2637,7 +2637,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 18, @@ -2680,7 +2680,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2694,7 +2694,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2756,7 +2756,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 19, @@ -2777,7 +2777,7 @@ "prompt_tokens": 38, "tokens": 44 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2815,7 +2815,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2829,7 +2829,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2853,7 +2853,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 20, @@ -2871,7 +2871,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2941,7 +2941,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 21, @@ -2960,7 +2960,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2979,7 +2979,7 @@ "city": "Paris" } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2993,7 +2993,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3053,7 +3053,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 22, @@ -3074,7 +3074,7 @@ "prompt_tokens": 38, "tokens": 44 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3100,7 +3100,7 @@ "totalTokens": 44 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3114,7 +3114,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3138,7 +3138,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 23, @@ -3156,7 +3156,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3192,7 +3192,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 24, @@ -3311,7 +3311,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3325,7 +3325,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3380,7 +3380,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 25, @@ -3401,7 +3401,7 @@ "prompt_tokens": 26, "tokens": 29 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3515,7 +3515,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3529,7 +3529,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3578,7 +3578,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 26, @@ -3599,7 +3599,7 @@ "prompt_tokens": 26, "tokens": 29 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3637,7 +3637,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3651,7 +3651,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3675,7 +3675,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 27, @@ -3693,7 +3693,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3729,7 +3729,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 28, @@ -3748,7 +3748,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3763,7 +3763,7 @@ "finish_reason": {} }, "output": {}, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3777,7 +3777,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3832,7 +3832,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 29, @@ -3851,7 +3851,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3866,7 +3866,7 @@ "finish_reason": {} }, "output": {}, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3880,7 +3880,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3927,7 +3927,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 30, @@ -3948,7 +3948,7 @@ "prompt_tokens": 27, "tokens": 31 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3974,7 +3974,7 @@ "totalTokens": 31 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3988,7 +3988,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v6.log-payloads.json b/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v6.log-payloads.json index 44ea50403..b2d7a3f5a 100644 --- a/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v6.log-payloads.json +++ b/e2e/scenarios/ai-sdk-auto-instrumentation-node-hook/__snapshots__/ai-sdk-v6.log-payloads.json @@ -17,7 +17,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -33,7 +33,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -54,7 +54,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -72,7 +72,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -122,7 +122,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -285,7 +285,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -299,7 +299,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -345,7 +345,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -365,7 +365,7 @@ "completion_tokens": 3, "prompt_tokens": 18 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -422,7 +422,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -436,7 +436,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -460,7 +460,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -478,7 +478,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -528,7 +528,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -547,7 +547,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -562,7 +562,7 @@ "finish_reason": {} }, "output": {}, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -576,7 +576,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -620,7 +620,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -640,7 +640,7 @@ "completion_tokens": 7, "prompt_tokens": 22 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -685,7 +685,7 @@ } } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -699,7 +699,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -723,7 +723,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -741,7 +741,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -812,7 +812,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -1736,7 +1736,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1750,7 +1750,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1803,7 +1803,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -1823,7 +1823,7 @@ "completion_tokens": 8, "prompt_tokens": 94 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1880,7 +1880,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1894,7 +1894,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1929,7 +1929,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -2024,7 +2024,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 11, @@ -2044,7 +2044,7 @@ "completion_tokens": 8, "prompt_tokens": 133 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2101,7 +2101,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2115,7 +2115,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2187,7 +2187,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 12, @@ -2319,7 +2319,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 13, @@ -2339,7 +2339,7 @@ "completion_tokens": 8, "prompt_tokens": 172 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2396,7 +2396,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2410,7 +2410,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2519,7 +2519,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 14, @@ -2688,7 +2688,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 15, @@ -2708,7 +2708,7 @@ "completion_tokens": 8, "prompt_tokens": 211 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2765,7 +2765,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2779,7 +2779,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2925,7 +2925,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 16, @@ -2954,7 +2954,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 17, @@ -2972,7 +2972,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3042,7 +3042,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 18, @@ -3103,7 +3103,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3117,7 +3117,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3179,7 +3179,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 19, @@ -3199,7 +3199,7 @@ "completion_tokens": 6, "prompt_tokens": 38 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3256,7 +3256,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3270,7 +3270,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3294,7 +3294,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 20, @@ -3312,7 +3312,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3382,7 +3382,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 21, @@ -3401,7 +3401,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3420,7 +3420,7 @@ "city": "Paris" } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3434,7 +3434,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3494,7 +3494,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 22, @@ -3514,7 +3514,7 @@ "completion_tokens": 6, "prompt_tokens": 38 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3559,7 +3559,7 @@ } } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3573,7 +3573,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3597,7 +3597,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 23, @@ -3615,7 +3615,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3651,7 +3651,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 24, @@ -3814,7 +3814,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3828,7 +3828,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3882,7 +3882,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 25, @@ -3903,7 +3903,7 @@ "prompt_tokens": 16, "tokens": 19 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4061,7 +4061,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4075,7 +4075,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4120,7 +4120,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 26, @@ -4140,7 +4140,7 @@ "completion_tokens": 3, "prompt_tokens": 16 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4197,7 +4197,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4211,7 +4211,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4235,7 +4235,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 27, @@ -4253,7 +4253,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4289,7 +4289,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 28, @@ -4308,7 +4308,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4323,7 +4323,7 @@ "finish_reason": {} }, "output": {}, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4337,7 +4337,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4391,7 +4391,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 29, @@ -4410,7 +4410,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4425,7 +4425,7 @@ "finish_reason": {} }, "output": {}, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4439,7 +4439,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4482,7 +4482,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 30, @@ -4502,7 +4502,7 @@ "completion_tokens": 4, "prompt_tokens": 17 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4547,7 +4547,7 @@ } } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4561,7 +4561,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/scenarios/anthropic-auto-instrumentation-node-hook/__snapshots__/log-payloads.json b/e2e/scenarios/anthropic-auto-instrumentation-node-hook/__snapshots__/log-payloads.json index b95b5edeb..4e2b36f10 100644 --- a/e2e/scenarios/anthropic-auto-instrumentation-node-hook/__snapshots__/log-payloads.json +++ b/e2e/scenarios/anthropic-auto-instrumentation-node-hook/__snapshots__/log-payloads.json @@ -16,7 +16,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -32,7 +32,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -53,7 +53,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -71,7 +71,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -102,7 +102,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -126,7 +126,7 @@ "time_to_first_token": 0, "tokens": 17 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -150,7 +150,7 @@ ], "role": "assistant" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -164,7 +164,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -188,7 +188,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -206,7 +206,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -255,7 +255,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -279,7 +279,7 @@ "time_to_first_token": 0, "tokens": 1418 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -303,7 +303,7 @@ ], "role": "assistant" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -317,7 +317,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -341,7 +341,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -359,7 +359,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -391,7 +391,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -415,7 +415,7 @@ "time_to_first_token": 0, "tokens": 42 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -431,7 +431,7 @@ "stop_sequence": null }, "output": "1 - one\n2 - two\n3 - three", - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -445,7 +445,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -469,7 +469,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -487,7 +487,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -519,7 +519,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -543,7 +543,7 @@ "time_to_first_token": 0, "tokens": 42 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -559,7 +559,7 @@ "stop_sequence": null }, "output": "1 - one\n2 - two\n3 - three", - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -573,7 +573,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -597,7 +597,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -615,7 +615,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -664,7 +664,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -688,7 +688,7 @@ "time_to_first_token": 0, "tokens": 412 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -719,7 +719,7 @@ ], "role": "assistant" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -733,7 +733,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -757,7 +757,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 11, @@ -775,7 +775,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -806,7 +806,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 12, @@ -830,7 +830,7 @@ "time_to_first_token": 0, "tokens": 19 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -854,7 +854,7 @@ ], "role": "assistant" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -868,7 +868,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -892,7 +892,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 13, @@ -910,7 +910,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -942,7 +942,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 14, @@ -966,7 +966,7 @@ "time_to_first_token": 0, "tokens": 42 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -982,7 +982,7 @@ "stop_sequence": null }, "output": "1 - one\n2 - two\n3 - three", - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -996,7 +996,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/scenarios/google-genai-auto-instrumentation-node-hook/__snapshots__/log-payloads.json b/e2e/scenarios/google-genai-auto-instrumentation-node-hook/__snapshots__/log-payloads.json index 5e7813b51..9d01021dd 100644 --- a/e2e/scenarios/google-genai-auto-instrumentation-node-hook/__snapshots__/log-payloads.json +++ b/e2e/scenarios/google-genai-auto-instrumentation-node-hook/__snapshots__/log-payloads.json @@ -16,7 +16,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -32,7 +32,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -53,7 +53,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -71,7 +71,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -106,7 +106,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -128,7 +128,7 @@ "prompt_tokens": 5, "tokens": 8 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -190,7 +190,7 @@ "totalTokenCount": 8 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -204,7 +204,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -228,7 +228,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -246,7 +246,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -298,7 +298,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -320,7 +320,7 @@ "prompt_tokens": 1299, "tokens": 1315 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -386,7 +386,7 @@ "totalTokenCount": 1315 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -400,7 +400,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -424,7 +424,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -442,7 +442,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -477,7 +477,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -500,7 +500,7 @@ "time_to_first_token": 0, "tokens": 22 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -544,7 +544,7 @@ "totalTokenCount": 22 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -558,7 +558,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -582,7 +582,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -600,7 +600,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -635,7 +635,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -657,7 +657,7 @@ "time_to_first_token": 0, "tokens": 8 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -693,7 +693,7 @@ "totalTokenCount": 8 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -707,7 +707,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -731,7 +731,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -749,7 +749,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -822,7 +822,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -844,7 +844,7 @@ "prompt_tokens": 28, "tokens": 35 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -911,7 +911,7 @@ "totalTokenCount": 35 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -925,7 +925,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/scenarios/trace-context-and-continuation/__snapshots__/scenario.test.ts.snap b/e2e/scenarios/trace-context-and-continuation/__snapshots__/scenario.test.ts.snap index 022911646..5e1210f85 100644 --- a/e2e/scenarios/trace-context-and-continuation/__snapshots__/scenario.test.ts.snap +++ b/e2e/scenarios/trace-context-and-continuation/__snapshots__/scenario.test.ts.snap @@ -19,7 +19,7 @@ exports[`trace-context-and-continuation supports reattachment and late span upda "end": 0, "start": 0, }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -40,7 +40,7 @@ exports[`trace-context-and-continuation supports reattachment and late span upda "output": { "state": "updated", }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", }, diff --git a/e2e/scenarios/trace-primitives-basic/__snapshots__/scenario.test.ts.snap b/e2e/scenarios/trace-primitives-basic/__snapshots__/scenario.test.ts.snap index d62c9d559..b72d0fb0b 100644 --- a/e2e/scenarios/trace-primitives-basic/__snapshots__/scenario.test.ts.snap +++ b/e2e/scenarios/trace-primitives-basic/__snapshots__/scenario.test.ts.snap @@ -14,14 +14,14 @@ exports[`trace-primitives-basic collects a minimal manual trace tree > request-f "headers": null, "jsonBody": { "org_id": "mock-org-id", - "project_name": "e2e-trace-primitives-basic-e2e-", + "project_name": "", }, "method": "POST", "path": "/api/project/register", "query": null, "rawBody": { "org_id": "mock-org-id", - "project_name": "e2e-trace-primitives-basic-e2e-", + "project_name": "", }, }, { @@ -58,7 +58,7 @@ exports[`trace-primitives-basic collects a minimal manual trace tree > request-f "metrics": { "start": 0, }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -96,7 +96,7 @@ exports[`trace-primitives-basic collects a minimal manual trace tree > request-f "metrics": { "start": 0, }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -137,7 +137,7 @@ exports[`trace-primitives-basic collects a minimal manual trace tree > request-f "output": { "ok": true, }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -178,7 +178,7 @@ Error: basic boom "end": 0, "start": 0, }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -199,7 +199,7 @@ Error: basic boom "output": { "status": "ok", }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", }, @@ -235,7 +235,7 @@ Error: basic boom "output": { "ok": true, }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -276,7 +276,7 @@ Error: basic boom "end": 0, "start": 0, }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -297,7 +297,7 @@ Error: basic boom "output": { "status": "ok", }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", }, diff --git a/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v3.log-payloads.json b/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v3.log-payloads.json index 185c0b254..fdb671c97 100644 --- a/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v3.log-payloads.json +++ b/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v3.log-payloads.json @@ -17,7 +17,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -33,7 +33,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -54,7 +54,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -72,7 +72,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -114,7 +114,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -244,7 +244,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -258,7 +258,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -306,7 +306,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -326,7 +326,7 @@ "completion_tokens": 2, "prompt_tokens": 18 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -375,7 +375,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -389,7 +389,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -413,7 +413,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -431,7 +431,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -473,7 +473,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -492,7 +492,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -597,7 +597,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -611,7 +611,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -659,7 +659,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -678,7 +678,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -693,7 +693,7 @@ "completion_tokens": 6, "prompt_tokens": 22 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -717,7 +717,7 @@ "promptTokens": 22 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -731,7 +731,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -755,7 +755,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -773,7 +773,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -854,7 +854,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -1095,7 +1095,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1109,7 +1109,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1185,7 +1185,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -1205,7 +1205,7 @@ "completion_tokens": 16, "prompt_tokens": 87 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1289,7 +1289,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1303,7 +1303,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1330,7 +1330,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -1359,7 +1359,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 11, @@ -1377,7 +1377,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1432,7 +1432,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 12, @@ -1474,7 +1474,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1488,7 +1488,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1554,7 +1554,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 13, @@ -1574,7 +1574,7 @@ "completion_tokens": 5, "prompt_tokens": 59 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1658,7 +1658,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1672,7 +1672,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1696,7 +1696,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 14, @@ -1714,7 +1714,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1769,7 +1769,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 15, @@ -1805,7 +1805,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1819,7 +1819,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1885,7 +1885,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 16, @@ -1904,7 +1904,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1919,7 +1919,7 @@ "completion_tokens": 5, "prompt_tokens": 59 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1951,7 +1951,7 @@ "promptTokens": 59 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1965,7 +1965,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v4.log-payloads.json b/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v4.log-payloads.json index 02a19ff22..1c3e73792 100644 --- a/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v4.log-payloads.json +++ b/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v4.log-payloads.json @@ -17,7 +17,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -33,7 +33,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -54,7 +54,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -72,7 +72,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -114,7 +114,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -230,7 +230,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -244,7 +244,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -291,7 +291,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -311,7 +311,7 @@ "completion_tokens": 2, "prompt_tokens": 18 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -398,7 +398,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -412,7 +412,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -436,7 +436,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -454,7 +454,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -496,7 +496,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -515,7 +515,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -624,7 +624,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -638,7 +638,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -685,7 +685,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -704,7 +704,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -719,7 +719,7 @@ "completion_tokens": 6, "prompt_tokens": 22 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -743,7 +743,7 @@ "promptTokens": 22 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -757,7 +757,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -781,7 +781,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -799,7 +799,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -880,7 +880,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -1066,7 +1066,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1080,7 +1080,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1155,7 +1155,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -1175,7 +1175,7 @@ "completion_tokens": 16, "prompt_tokens": 87 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1307,7 +1307,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1321,7 +1321,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1356,7 +1356,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -1385,7 +1385,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 11, @@ -1403,7 +1403,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1458,7 +1458,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 12, @@ -1507,7 +1507,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1521,7 +1521,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1586,7 +1586,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 13, @@ -1606,7 +1606,7 @@ "completion_tokens": 5, "prompt_tokens": 59 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1738,7 +1738,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1752,7 +1752,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1776,7 +1776,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 14, @@ -1794,7 +1794,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1849,7 +1849,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 15, @@ -1868,7 +1868,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1910,7 +1910,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1924,7 +1924,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1989,7 +1989,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 16, @@ -2008,7 +2008,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2023,7 +2023,7 @@ "completion_tokens": 5, "prompt_tokens": 59 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2055,7 +2055,7 @@ "promptTokens": 59 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2069,7 +2069,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v5.log-payloads.json b/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v5.log-payloads.json index f4ebc5539..152d64fc5 100644 --- a/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v5.log-payloads.json +++ b/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v5.log-payloads.json @@ -17,7 +17,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -33,7 +33,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -54,7 +54,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -72,7 +72,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -123,7 +123,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -229,7 +229,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -243,7 +243,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -289,7 +289,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -313,7 +313,7 @@ "reasoning_tokens": 0, "tokens": 21 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -362,7 +362,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -376,7 +376,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -400,7 +400,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -418,7 +418,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -469,7 +469,7 @@ "start": 0, "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -604,7 +604,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -618,7 +618,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -662,7 +662,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -681,7 +681,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -700,7 +700,7 @@ "reasoning_tokens": 0, "tokens": 29 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -727,7 +727,7 @@ "totalTokens": 29 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -741,7 +741,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -765,7 +765,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -783,7 +783,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -874,7 +874,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -1592,7 +1592,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1606,7 +1606,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1701,7 +1701,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -1725,7 +1725,7 @@ "reasoning_tokens": 0, "tokens": 102 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1776,7 +1776,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1790,7 +1790,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1825,7 +1825,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -1957,7 +1957,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 11, @@ -1981,7 +1981,7 @@ "reasoning_tokens": 0, "tokens": 141 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2032,7 +2032,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2046,7 +2046,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2113,7 +2113,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 12, @@ -2277,7 +2277,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 13, @@ -2301,7 +2301,7 @@ "reasoning_tokens": 0, "tokens": 180 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2352,7 +2352,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2366,7 +2366,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2465,7 +2465,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 14, @@ -2661,7 +2661,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 15, @@ -2685,7 +2685,7 @@ "reasoning_tokens": 0, "tokens": 219 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2736,7 +2736,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2750,7 +2750,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2881,7 +2881,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 16, @@ -2910,7 +2910,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 17, @@ -2928,7 +2928,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2992,7 +2992,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 18, @@ -3035,7 +3035,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3049,7 +3049,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3111,7 +3111,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 19, @@ -3135,7 +3135,7 @@ "reasoning_tokens": 0, "tokens": 44 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3184,7 +3184,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3198,7 +3198,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3222,7 +3222,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 20, @@ -3240,7 +3240,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3304,7 +3304,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 21, @@ -3323,7 +3323,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3359,7 +3359,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3373,7 +3373,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3433,7 +3433,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 22, @@ -3452,7 +3452,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3471,7 +3471,7 @@ "reasoning_tokens": 0, "tokens": 44 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3498,7 +3498,7 @@ "totalTokens": 44 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3512,7 +3512,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3536,7 +3536,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 23, @@ -3554,7 +3554,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3610,7 +3610,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 24, @@ -3716,7 +3716,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3730,7 +3730,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3779,7 +3779,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 25, @@ -3803,7 +3803,7 @@ "reasoning_tokens": 0, "tokens": 29 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3852,7 +3852,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3866,7 +3866,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3890,7 +3890,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 26, @@ -3908,7 +3908,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3964,7 +3964,7 @@ "start": 0, "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 27, @@ -4099,7 +4099,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4113,7 +4113,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4160,7 +4160,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 28, @@ -4179,7 +4179,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4198,7 +4198,7 @@ "reasoning_tokens": 0, "tokens": 31 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4225,7 +4225,7 @@ "totalTokens": 31 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4239,7 +4239,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v6.log-payloads.json b/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v6.log-payloads.json index 862afbe56..be919c35e 100644 --- a/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v6.log-payloads.json +++ b/e2e/scenarios/wrap-ai-sdk-generation-traces/__snapshots__/ai-sdk-v6.log-payloads.json @@ -17,7 +17,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -33,7 +33,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -54,7 +54,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -72,7 +72,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -123,7 +123,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -281,7 +281,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -295,7 +295,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -341,7 +341,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -364,7 +364,7 @@ "prompt_tokens": 18, "reasoning_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -432,7 +432,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -446,7 +446,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -470,7 +470,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -488,7 +488,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -539,7 +539,7 @@ "start": 0, "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -718,7 +718,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -732,7 +732,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -776,7 +776,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -795,7 +795,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -813,7 +813,7 @@ "prompt_tokens": 22, "reasoning_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -859,7 +859,7 @@ } } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -873,7 +873,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -897,7 +897,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -915,7 +915,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1006,7 +1006,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -1924,7 +1924,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1938,7 +1938,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2033,7 +2033,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -2056,7 +2056,7 @@ "prompt_tokens": 94, "reasoning_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2126,7 +2126,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2140,7 +2140,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2175,7 +2175,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -2312,7 +2312,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 11, @@ -2335,7 +2335,7 @@ "prompt_tokens": 133, "reasoning_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2405,7 +2405,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2419,7 +2419,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2491,7 +2491,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 12, @@ -2665,7 +2665,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 13, @@ -2688,7 +2688,7 @@ "prompt_tokens": 172, "reasoning_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2758,7 +2758,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2772,7 +2772,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2881,7 +2881,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 14, @@ -3092,7 +3092,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 15, @@ -3115,7 +3115,7 @@ "prompt_tokens": 211, "reasoning_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3185,7 +3185,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3199,7 +3199,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3345,7 +3345,7 @@ "start": 0 }, "output": "{\"condition\":\"sunny\",\"location\":\"Paris, France\",\"temperatureC\":22}", - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 16, @@ -3374,7 +3374,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 17, @@ -3392,7 +3392,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3456,7 +3456,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 18, @@ -3517,7 +3517,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3531,7 +3531,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3593,7 +3593,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 19, @@ -3616,7 +3616,7 @@ "prompt_tokens": 38, "reasoning_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3684,7 +3684,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3698,7 +3698,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3722,7 +3722,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 20, @@ -3740,7 +3740,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3804,7 +3804,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 21, @@ -3823,7 +3823,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3877,7 +3877,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3891,7 +3891,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3951,7 +3951,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 22, @@ -3970,7 +3970,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -3988,7 +3988,7 @@ "prompt_tokens": 38, "reasoning_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4034,7 +4034,7 @@ } } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4048,7 +4048,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4072,7 +4072,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 23, @@ -4090,7 +4090,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4146,7 +4146,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 24, @@ -4304,7 +4304,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4318,7 +4318,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4363,7 +4363,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 25, @@ -4386,7 +4386,7 @@ "prompt_tokens": 16, "reasoning_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4454,7 +4454,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4468,7 +4468,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4492,7 +4492,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 26, @@ -4510,7 +4510,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4566,7 +4566,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 27, @@ -4585,7 +4585,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4759,7 +4759,7 @@ }, "warnings": [] }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4773,7 +4773,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4816,7 +4816,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 28, @@ -4835,7 +4835,7 @@ "metrics": { "time_to_first_token": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4853,7 +4853,7 @@ "prompt_tokens": 17, "reasoning_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4899,7 +4899,7 @@ } } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -4913,7 +4913,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/scenarios/wrap-anthropic-message-traces/__snapshots__/log-payloads.json b/e2e/scenarios/wrap-anthropic-message-traces/__snapshots__/log-payloads.json index 7e444e02e..193201085 100644 --- a/e2e/scenarios/wrap-anthropic-message-traces/__snapshots__/log-payloads.json +++ b/e2e/scenarios/wrap-anthropic-message-traces/__snapshots__/log-payloads.json @@ -16,7 +16,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -32,7 +32,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -53,7 +53,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -71,7 +71,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -103,7 +103,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -127,7 +127,7 @@ "time_to_first_token": 0, "tokens": 17 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -151,7 +151,7 @@ ], "role": "assistant" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -165,7 +165,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -189,7 +189,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -207,7 +207,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -257,7 +257,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -281,7 +281,7 @@ "time_to_first_token": 0, "tokens": 1418 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -305,7 +305,7 @@ ], "role": "assistant" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -319,7 +319,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -343,7 +343,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -361,7 +361,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -394,7 +394,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -416,7 +416,7 @@ "prompt_cached_tokens": 0, "prompt_tokens": 24 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -435,7 +435,7 @@ "time_to_first_token": 0, "tokens": 42 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -454,7 +454,7 @@ "content": [], "role": "assistant" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -466,7 +466,7 @@ "id": "", "log_id": "g", "output": "1 - one\n2 - two\n3 - three", - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -481,7 +481,7 @@ "stop_reason": "end_turn", "stop_sequence": null }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -495,7 +495,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -519,7 +519,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -537,7 +537,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -570,7 +570,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -592,7 +592,7 @@ "prompt_cached_tokens": 0, "prompt_tokens": 24 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -611,7 +611,7 @@ "time_to_first_token": 0, "tokens": 42 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -630,7 +630,7 @@ "content": [], "role": "assistant" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -642,7 +642,7 @@ "id": "", "log_id": "g", "output": "1 - one\n2 - two\n3 - three", - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -657,7 +657,7 @@ "stop_reason": "end_turn", "stop_sequence": null }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -671,7 +671,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -695,7 +695,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -713,7 +713,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -763,7 +763,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -787,7 +787,7 @@ "time_to_first_token": 0, "tokens": 412 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -818,7 +818,7 @@ ], "role": "assistant" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -832,7 +832,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -856,7 +856,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 11, @@ -874,7 +874,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -906,7 +906,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 12, @@ -930,7 +930,7 @@ "time_to_first_token": 0, "tokens": 19 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -954,7 +954,7 @@ ], "role": "assistant" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -968,7 +968,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -992,7 +992,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 13, @@ -1010,7 +1010,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1043,7 +1043,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 14, @@ -1065,7 +1065,7 @@ "prompt_cached_tokens": 0, "prompt_tokens": 24 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1084,7 +1084,7 @@ "time_to_first_token": 0, "tokens": 42 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1103,7 +1103,7 @@ "content": [], "role": "assistant" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1115,7 +1115,7 @@ "id": "", "log_id": "g", "output": "1 - one\n2 - two\n3 - three", - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1130,7 +1130,7 @@ "stop_reason": "end_turn", "stop_sequence": null }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1144,7 +1144,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/scenarios/wrap-google-genai-content-traces/__snapshots__/log-payloads.json b/e2e/scenarios/wrap-google-genai-content-traces/__snapshots__/log-payloads.json index e712905b6..943fae182 100644 --- a/e2e/scenarios/wrap-google-genai-content-traces/__snapshots__/log-payloads.json +++ b/e2e/scenarios/wrap-google-genai-content-traces/__snapshots__/log-payloads.json @@ -16,7 +16,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -32,7 +32,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -53,7 +53,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -71,7 +71,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -106,7 +106,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -129,7 +129,7 @@ "start": 0, "tokens": 8 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -191,7 +191,7 @@ "totalTokenCount": 8 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -205,7 +205,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -216,7 +216,7 @@ "_is_merge": true, "id": "", "log_id": "g", - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -240,7 +240,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -258,7 +258,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -310,7 +310,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -333,7 +333,7 @@ "start": 0, "tokens": 1315 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -399,7 +399,7 @@ "totalTokenCount": 1315 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -413,7 +413,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -424,7 +424,7 @@ "_is_merge": true, "id": "", "log_id": "g", - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -448,7 +448,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -466,7 +466,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -501,7 +501,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -525,7 +525,7 @@ "time_to_first_token": 0, "tokens": 22 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -569,7 +569,7 @@ "totalTokenCount": 22 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -583,7 +583,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -607,7 +607,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -625,7 +625,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -660,7 +660,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -683,7 +683,7 @@ "time_to_first_token": 0, "tokens": 8 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -719,7 +719,7 @@ "totalTokenCount": 8 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -733,7 +733,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -757,7 +757,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -775,7 +775,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -848,7 +848,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -871,7 +871,7 @@ "start": 0, "tokens": 35 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -938,7 +938,7 @@ "totalTokenCount": 35 } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -952,7 +952,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -963,7 +963,7 @@ "_is_merge": true, "id": "", "log_id": "g", - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/scenarios/wrap-langchain-js-traces/__snapshots__/log-payloads.json b/e2e/scenarios/wrap-langchain-js-traces/__snapshots__/log-payloads.json index 74382c5b6..132aa3b55 100644 --- a/e2e/scenarios/wrap-langchain-js-traces/__snapshots__/log-payloads.json +++ b/e2e/scenarios/wrap-langchain-js-traces/__snapshots__/log-payloads.json @@ -16,7 +16,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -32,7 +32,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, @@ -53,7 +53,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -71,7 +71,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -163,7 +163,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -185,7 +185,7 @@ "prompt_tokens": 0, "total_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -275,7 +275,7 @@ } } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -289,7 +289,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -313,7 +313,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -331,7 +331,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -443,7 +443,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -518,7 +518,7 @@ "lc": 1, "type": "constructor" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -532,7 +532,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -643,7 +643,7 @@ "lc": 1, "type": "constructor" }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -743,7 +743,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -765,7 +765,7 @@ "prompt_tokens": 0, "total_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -857,7 +857,7 @@ } } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -871,7 +871,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -895,7 +895,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -913,7 +913,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1012,7 +1012,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 8, @@ -1035,7 +1035,7 @@ "time_to_first_token": 0, "total_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1128,7 +1128,7 @@ } } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1142,7 +1142,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1166,7 +1166,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 9, @@ -1184,7 +1184,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1323,7 +1323,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 10, @@ -1345,7 +1345,7 @@ "prompt_tokens": 0, "total_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1455,7 +1455,7 @@ } } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1469,7 +1469,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1493,7 +1493,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 11, @@ -1511,7 +1511,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1676,7 +1676,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 12, @@ -1698,7 +1698,7 @@ "prompt_tokens": 0, "total_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1810,7 +1810,7 @@ } } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -1824,7 +1824,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2031,7 +2031,7 @@ "metrics": { "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 13, @@ -2053,7 +2053,7 @@ "prompt_tokens": 0, "total_tokens": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2143,7 +2143,7 @@ } } }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ @@ -2157,7 +2157,7 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "", "span_parents": [ diff --git a/e2e/vitest.config.mts b/e2e/vitest.config.mts index 570af4c99..3a1122424 100644 --- a/e2e/vitest.config.mts +++ b/e2e/vitest.config.mts @@ -1,10 +1,16 @@ import { defineConfig } from "vitest/config"; import { E2E_TAGS } from "./helpers/tags"; +const hasGoogleGenAICredentials = Boolean( + process.env.GOOGLE_API_KEY || process.env.GEMINI_API_KEY, +); + export default defineConfig({ test: { + fileParallelism: !hasGoogleGenAICredentials, hookTimeout: 20_000, include: ["scenarios/**/*.test.ts"], + setupFiles: ["./vitest.setup.ts"], tags: [ { name: E2E_TAGS.externalApi, diff --git a/e2e/vitest.setup.ts b/e2e/vitest.setup.ts new file mode 100644 index 000000000..f91599cb3 --- /dev/null +++ b/e2e/vitest.setup.ts @@ -0,0 +1,3 @@ +import { initializeProdForwarding } from "./helpers/prod-forwarding"; + +await initializeProdForwarding(); From b6fc8c1d340711b68699a72dc4be7f5165c232bb Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Mon, 23 Mar 2026 16:26:44 +0100 Subject: [PATCH 2/4] fix --- e2e/helpers/scenario-harness.ts | 114 ++++- e2e/helpers/wrapper-contract.ts | 51 +- .../__snapshots__/scenario.test.ts.snap | 6 +- .../jest-node/__snapshots__/log-payloads.json | 100 ++-- .../jest-node/__snapshots__/request-flow.json | 470 +++++------------- .../__snapshots__/scenario.test.ts.snap | 100 ++-- .../__snapshots__/v2.log-payloads.json | 8 +- .../__snapshots__/v3.log-payloads.json | 8 +- .../__snapshots__/v4.1.log-payloads.json | 8 +- 9 files changed, 376 insertions(+), 489 deletions(-) diff --git a/e2e/helpers/scenario-harness.ts b/e2e/helpers/scenario-harness.ts index bd7f2eb9c..f4cd89e2f 100644 --- a/e2e/helpers/scenario-harness.ts +++ b/e2e/helpers/scenario-harness.ts @@ -57,6 +57,116 @@ function filterItems(items: T[], predicate?: (item: T) => boolean): T[] { return predicate ? items.filter(predicate) : [...items]; } +function requestRowIdentity(row: Record): string { + return JSON.stringify( + [ + "org_id", + "project_id", + "experiment_id", + "dataset_id", + "prompt_session_id", + "log_id", + "id", + ].map((key) => row[key]), + ); +} + +function mergeValue(base: unknown, incoming: unknown): unknown { + if (isRecord(base) && isRecord(incoming)) { + const merged: Record = { ...base }; + for (const [key, value] of Object.entries(incoming)) { + merged[key] = key in merged ? mergeValue(merged[key], value) : value; + } + return merged; + } + + return incoming; +} + +function mergeRequestRow( + existing: Record | undefined, + incoming: Record, +): Record { + if (!existing || incoming._is_merge !== true) { + return structuredClone(incoming); + } + + const preserveNoMerge = existing._is_merge !== true; + const merged = mergeValue(existing, incoming) as Record; + if (preserveNoMerge) { + delete merged._is_merge; + } + return structuredClone(merged); +} + +function mergeLogs3RequestBody( + left: JsonValue | null, + right: JsonValue | null, +): JsonValue | null { + if ( + !isRecord(left) || + !Array.isArray(left.rows) || + !isRecord(right) || + !Array.isArray(right.rows) + ) { + return right ?? left; + } + + const mergedRows = new Map>(); + const rowOrder: string[] = []; + for (const row of [...left.rows, ...right.rows]) { + if (!isRecord(row)) { + continue; + } + const key = requestRowIdentity(row); + if (!mergedRows.has(key)) { + rowOrder.push(key); + } + mergedRows.set(key, mergeRequestRow(mergedRows.get(key), row)); + } + + return { + ...left, + ...right, + rows: rowOrder + .map((key) => mergedRows.get(key)) + .filter((row): row is Record => row !== undefined), + }; +} + +function normalizeCapturedRequests( + requests: CapturedRequest[], +): CapturedRequest[] { + const normalized: CapturedRequest[] = []; + + for (const request of requests) { + const previous = normalized.at(-1); + if ( + previous && + previous.method === "POST" && + previous.path === "/logs3" && + request.method === "POST" && + request.path === "/logs3" + ) { + const mergedBody = mergeLogs3RequestBody( + previous.jsonBody, + request.jsonBody, + ); + normalized[normalized.length - 1] = { + ...previous, + jsonBody: mergedBody, + rawBody: + mergedBody === null ? previous.rawBody : JSON.stringify(mergedBody), + }; + continue; + } + + normalized.push(structuredClone(request)); + } + + return normalized; +} + function createTestRunId(): string { return `e2e-${randomUUID()}`; } @@ -242,7 +352,9 @@ export async function withScenarioHarness( payloads: (predicate) => filterItems(server.payloads, predicate), requestCursor: () => server.requests.length, requestsAfter: (after, predicate) => - filterItems(server.requests.slice(after), predicate), + normalizeCapturedRequests( + filterItems(server.requests.slice(after), predicate), + ), runNodeScenarioDir: (options) => runNodeScenarioDir({ ...options, diff --git a/e2e/helpers/wrapper-contract.ts b/e2e/helpers/wrapper-contract.ts index ac6a5af47..3d7149a90 100644 --- a/e2e/helpers/wrapper-contract.ts +++ b/e2e/helpers/wrapper-contract.ts @@ -130,6 +130,48 @@ function splitTerminalMergeRow(row: CapturedLogRow): CapturedLogRow[] { return rows; } +function payloadRowIdentity(row: CapturedLogRow): string { + return JSON.stringify( + [ + "org_id", + "project_id", + "experiment_id", + "dataset_id", + "prompt_session_id", + "log_id", + "id", + ].map((key) => row[key]), + ); +} + +function mergeValue(base: unknown, incoming: unknown): unknown { + if (isRecord(base) && isRecord(incoming)) { + const merged: Record = { ...base }; + for (const [key, value] of Object.entries(incoming)) { + merged[key] = key in merged ? mergeValue(merged[key], value) : value; + } + return merged; + } + + return incoming; +} + +function mergePayloadRow( + existing: CapturedLogRow | undefined, + incoming: CapturedLogRow, +): CapturedLogRow { + if (!existing || !incoming._is_merge) { + return structuredClone(incoming); + } + + const preserveNoMerge = !existing._is_merge; + const merged = mergeValue(existing, incoming) as CapturedLogRow; + if (preserveNoMerge) { + delete merged._is_merge; + } + return structuredClone(merged); +} + function sortPayloadRows(rows: CapturedLogRow[]): CapturedLogRow[] { const spanOrder = new Map(); for (const row of rows) { @@ -198,8 +240,13 @@ export function payloadRowsForTestRunId( payloads: CapturedLogPayload[], testRunId: string, ): CapturedLogRow[] { - const rows = payloads - .flatMap((payload) => payload.rows) + const mergedRows = new Map(); + for (const row of payloads.flatMap((payload) => payload.rows)) { + const key = payloadRowIdentity(row); + mergedRows.set(key, mergePayloadRow(mergedRows.get(key), row)); + } + + const rows = [...mergedRows.values()] .filter((row) => hasTestRunId(row, testRunId)) .flatMap((row) => splitTerminalMergeRow(row)); diff --git a/e2e/scenarios/init-node-test-suite-traces/__snapshots__/scenario.test.ts.snap b/e2e/scenarios/init-node-test-suite-traces/__snapshots__/scenario.test.ts.snap index 4271fc0f8..c757949ec 100644 --- a/e2e/scenarios/init-node-test-suite-traces/__snapshots__/scenario.test.ts.snap +++ b/e2e/scenarios/init-node-test-suite-traces/__snapshots__/scenario.test.ts.snap @@ -3,7 +3,6 @@ exports[`init-node-test-suite-traces captures node:test task spans > log-payloads 1`] = ` [ { - "_is_merge": false, "context": { "caller_filename": "", "caller_functionname": "", @@ -19,9 +18,14 @@ exports[`init-node-test-suite-traces captures node:test task spans > log-payload "testRunId": "", }, "metrics": { + "end": 0, "start": 0, }, + "output": "echo:hello", "root_span_id": "", + "scores": { + "pass": 1, + }, "span_attributes": { "exec_counter": 0, "name": "node-test basic eval", diff --git a/e2e/scenarios/jest-node/__snapshots__/log-payloads.json b/e2e/scenarios/jest-node/__snapshots__/log-payloads.json index c9040d448..5f93e6100 100644 --- a/e2e/scenarios/jest-node/__snapshots__/log-payloads.json +++ b/e2e/scenarios/jest-node/__snapshots__/log-payloads.json @@ -1,23 +1,27 @@ [ { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "Object.", "caller_lineno": 0 }, "created": "", + "expected": "Paris", "id": "", + "input": "What is the capital of France?", "log_id": "g", "metadata": { "case": "basic-span", "scenario": "jest-node", - "testRunId": "" + "testRunId": "", + "transport": "http" }, "metrics": { + "end": 0, "start": 0 }, - "project_id": "", + "output": "Paris", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -27,35 +31,6 @@ "span_id": "" }, { - "_is_merge": true, - "expected": "Paris", - "id": "", - "input": "What is the capital of France?", - "log_id": "g", - "metadata": { - "case": "basic-span", - "scenario": "jest-node", - "testRunId": "", - "transport": "http" - }, - "output": "Paris", - "project_id": "", - "root_span_id": "", - "span_id": "" - }, - { - "_is_merge": true, - "id": "", - "log_id": "g", - "metrics": { - "end": 0 - }, - "project_id": "", - "root_span_id": "", - "span_id": "" - }, - { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "Object.", @@ -79,12 +54,13 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, "output": { "attachment": true }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -94,7 +70,6 @@ "span_id": "" }, { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "Object.", @@ -113,9 +88,14 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, - "project_id": "", + "output": { + "ok": true, + "phase": "parent" + }, + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -125,7 +105,6 @@ "span_id": "" }, { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "traced.name", @@ -144,9 +123,14 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, - "project_id": "", + "output": { + "ok": true, + "phase": "child" + }, + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 3, @@ -158,7 +142,6 @@ ] }, { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "Object.", @@ -173,9 +156,10 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -202,7 +186,7 @@ "end": 0, "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -234,7 +218,7 @@ "output": { "depth": 3 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -246,7 +230,6 @@ ] }, { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "Object.", @@ -261,9 +244,13 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, - "project_id": "", + "output": { + "observedSpanId": "" + }, + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -271,32 +258,5 @@ "type": "task" }, "span_id": "" - }, - { - "_is_merge": true, - "id": "", - "log_id": "g", - "metadata": { - "case": "current-span", - "scenario": "jest-node", - "testRunId": "" - }, - "output": { - "observedSpanId": "" - }, - "project_id": "", - "root_span_id": "", - "span_id": "" - }, - { - "_is_merge": true, - "id": "", - "log_id": "g", - "metrics": { - "end": 0 - }, - "project_id": "", - "root_span_id": "", - "span_id": "" } ] diff --git a/e2e/scenarios/jest-node/__snapshots__/request-flow.json b/e2e/scenarios/jest-node/__snapshots__/request-flow.json index d63912bd5..d8b7528ce 100644 --- a/e2e/scenarios/jest-node/__snapshots__/request-flow.json +++ b/e2e/scenarios/jest-node/__snapshots__/request-flow.json @@ -11,14 +11,14 @@ "headers": null, "jsonBody": { "org_id": "mock-org-id", - "project_name": "e2e-jest-node-e2e-" + "project_name": "" }, "method": "POST", "path": "/api/project/register", "query": null, "rawBody": { "org_id": "mock-org-id", - "project_name": "e2e-jest-node-e2e-" + "project_name": "" } }, { @@ -27,24 +27,28 @@ "api_version": 2, "rows": [ { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "Object.", "caller_lineno": 0 }, "created": "", + "expected": "Paris", "id": "", + "input": "What is the capital of France?", "log_id": "g", "metadata": { "case": "basic-span", "scenario": "jest-node", - "testRunId": "" + "testRunId": "", + "transport": "http" }, "metrics": { + "end": 0, "start": 0 }, - "project_id": "", + "output": "Paris", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 0, @@ -62,42 +66,12 @@ "api_version": 2, "rows": [ { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "Object.", "caller_lineno": 0 }, "created": "", - "id": "", - "log_id": "g", - "metadata": { - "case": "basic-span", - "scenario": "jest-node", - "testRunId": "" - }, - "metrics": { - "start": 0 - }, - "project_id": "", - "root_span_id": "", - "span_attributes": { - "exec_counter": 0, - "name": "jest basic span", - "type": "task" - }, - "span_id": "" - } - ] - } - }, - { - "headers": null, - "jsonBody": { - "api_version": 2, - "rows": [ - { - "_is_merge": true, "expected": "Paris", "id": "", "input": "What is the capital of France?", @@ -109,39 +83,17 @@ "transport": "http" }, "metrics": { - "end": 0 + "end": 0, + "start": 0 }, "output": "Paris", - "project_id": "", + "project_id": "", "root_span_id": "", - "span_id": "" - } - ] - }, - "method": "POST", - "path": "/logs3", - "query": null, - "rawBody": { - "api_version": 2, - "rows": [ - { - "_is_merge": true, - "expected": "Paris", - "id": "", - "input": "What is the capital of France?", - "log_id": "g", - "metadata": { - "case": "basic-span", - "scenario": "jest-node", - "testRunId": "", - "transport": "http" - }, - "metrics": { - "end": 0 + "span_attributes": { + "exec_counter": 0, + "name": "jest basic span", + "type": "task" }, - "output": "Paris", - "project_id": "", - "root_span_id": "", "span_id": "" } ] @@ -151,14 +103,14 @@ "headers": null, "jsonBody": { "org_id": "mock-org-id", - "project_name": "e2e-jest-node-e2e-" + "project_name": "" }, "method": "POST", "path": "/api/project/register", "query": null, "rawBody": { "org_id": "mock-org-id", - "project_name": "e2e-jest-node-e2e-" + "project_name": "" } }, { @@ -196,7 +148,7 @@ "output": { "attachment": true }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -243,7 +195,7 @@ "output": { "attachment": true }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 1, @@ -259,14 +211,14 @@ "headers": null, "jsonBody": { "org_id": "mock-org-id", - "project_name": "e2e-jest-node-e2e-" + "project_name": "" }, "method": "POST", "path": "/api/project/register", "query": null, "rawBody": { "org_id": "mock-org-id", - "project_name": "e2e-jest-node-e2e-" + "project_name": "" } }, { @@ -281,12 +233,11 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "Object.", @@ -305,9 +256,14 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, - "project_id": "", + "output": { + "ok": true, + "phase": "parent" + }, + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -315,6 +271,43 @@ "type": "task" }, "span_id": "" + }, + { + "context": { + "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", + "caller_functionname": "traced.name", + "caller_lineno": 0 + }, + "created": "", + "id": "", + "input": { + "step": "child", + "testRunId": "" + }, + "log_id": "g", + "metadata": { + "case": "child-span", + "scenario": "jest-node", + "testRunId": "" + }, + "metrics": { + "end": 0, + "start": 0 + }, + "output": { + "ok": true, + "phase": "child" + }, + "project_id": "", + "root_span_id": "", + "span_attributes": { + "exec_counter": 3, + "name": "jest child span" + }, + "span_id": "", + "span_parents": [ + "" + ] } ] }, @@ -331,12 +324,11 @@ "metrics": { "end": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_id": "" }, { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "Object.", @@ -355,9 +347,14 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, - "project_id": "", + "output": { + "ok": true, + "phase": "parent" + }, + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 2, @@ -365,58 +362,8 @@ "type": "task" }, "span_id": "" - } - ] - } - }, - { - "headers": null, - "jsonBody": { - "api_version": 2, - "rows": [ - { - "_is_merge": false, - "context": { - "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", - "caller_functionname": "traced.name", - "caller_lineno": 0 - }, - "created": "", - "id": "", - "input": { - "step": "child", - "testRunId": "" - }, - "log_id": "g", - "metadata": { - "case": "child-span", - "scenario": "jest-node", - "testRunId": "" - }, - "metrics": { - "start": 0 - }, - "project_id": "", - "root_span_id": "", - "span_attributes": { - "exec_counter": 3, - "name": "jest child span" - }, - "span_id": "", - "span_parents": [ - "" - ] - } - ] - }, - "method": "POST", - "path": "/logs3", - "query": null, - "rawBody": { - "api_version": 2, - "rows": [ + }, { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "traced.name", @@ -435,100 +382,23 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, - "project_id": "", - "root_span_id": "", - "span_attributes": { - "exec_counter": 3, - "name": "jest child span" - }, - "span_id": "", - "span_parents": [ - "" - ] - } - ] - } - }, - { - "headers": null, - "jsonBody": { - "api_version": 2, - "rows": [ - { - "_is_merge": true, - "id": "", - "log_id": "g", - "metrics": { - "end": 0 - }, "output": { "ok": true, "phase": "child" }, - "project_id": "", - "root_span_id": "", - "span_id": "", - "span_parents": [ - "" - ] - }, - { - "_is_merge": true, - "id": "", - "log_id": "g", - "metrics": { - "end": 0 - }, - "output": { - "ok": true, - "phase": "parent" - }, - "project_id": "", + "project_id": "", "root_span_id": "", - "span_id": "" - } - ] - }, - "method": "POST", - "path": "/logs3", - "query": null, - "rawBody": { - "api_version": 2, - "rows": [ - { - "_is_merge": true, - "id": "", - "log_id": "g", - "metrics": { - "end": 0 - }, - "output": { - "ok": true, - "phase": "child" + "span_attributes": { + "exec_counter": 3, + "name": "jest child span" }, - "project_id": "", - "root_span_id": "", "span_id": "", "span_parents": [ "" ] - }, - { - "_is_merge": true, - "id": "", - "log_id": "g", - "metrics": { - "end": 0 - }, - "output": { - "ok": true, - "phase": "parent" - }, - "project_id": "", - "root_span_id": "", - "span_id": "" } ] } @@ -537,14 +407,14 @@ "headers": null, "jsonBody": { "org_id": "mock-org-id", - "project_name": "e2e-jest-node-e2e-" + "project_name": "" }, "method": "POST", "path": "/api/project/register", "query": null, "rawBody": { "org_id": "mock-org-id", - "project_name": "e2e-jest-node-e2e-" + "project_name": "" } }, { @@ -553,42 +423,6 @@ "api_version": 2, "rows": [ { - "_is_merge": false, - "context": { - "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", - "caller_functionname": "Object.", - "caller_lineno": 0 - }, - "created": "", - "id": "", - "log_id": "g", - "metadata": { - "case": "nested-parent", - "scenario": "jest-node", - "testRunId": "" - }, - "metrics": { - "start": 0 - }, - "project_id": "", - "root_span_id": "", - "span_attributes": { - "exec_counter": 4, - "name": "jest nested parent span", - "type": "task" - }, - "span_id": "" - } - ] - }, - "method": "POST", - "path": "/logs3", - "query": null, - "rawBody": { - "api_version": 2, - "rows": [ - { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "Object.", @@ -603,9 +437,10 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 4, @@ -613,15 +448,7 @@ "type": "task" }, "span_id": "" - } - ] - } - }, - { - "headers": null, - "jsonBody": { - "api_version": 2, - "rows": [ + }, { "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", @@ -640,7 +467,7 @@ "end": 0, "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -672,7 +499,7 @@ "output": { "depth": 3 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -682,17 +509,6 @@ "span_parents": [ "" ] - }, - { - "_is_merge": true, - "id": "", - "log_id": "g", - "metrics": { - "end": 0 - }, - "project_id": "", - "root_span_id": "", - "span_id": "" } ] }, @@ -702,6 +518,33 @@ "rawBody": { "api_version": 2, "rows": [ + { + "context": { + "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", + "caller_functionname": "Object.", + "caller_lineno": 0 + }, + "created": "", + "id": "", + "log_id": "g", + "metadata": { + "case": "nested-parent", + "scenario": "jest-node", + "testRunId": "" + }, + "metrics": { + "end": 0, + "start": 0 + }, + "project_id": "", + "root_span_id": "", + "span_attributes": { + "exec_counter": 4, + "name": "jest nested parent span", + "type": "task" + }, + "span_id": "" + }, { "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", @@ -720,7 +563,7 @@ "end": 0, "start": 0 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 5, @@ -752,7 +595,7 @@ "output": { "depth": 3 }, - "project_id": "", + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 6, @@ -762,17 +605,6 @@ "span_parents": [ "" ] - }, - { - "_is_merge": true, - "id": "", - "log_id": "g", - "metrics": { - "end": 0 - }, - "project_id": "", - "root_span_id": "", - "span_id": "" } ] } @@ -781,14 +613,14 @@ "headers": null, "jsonBody": { "org_id": "mock-org-id", - "project_name": "e2e-jest-node-e2e-" + "project_name": "" }, "method": "POST", "path": "/api/project/register", "query": null, "rawBody": { "org_id": "mock-org-id", - "project_name": "e2e-jest-node-e2e-" + "project_name": "" } }, { @@ -797,7 +629,6 @@ "api_version": 2, "rows": [ { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "Object.", @@ -812,9 +643,13 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, - "project_id": "", + "output": { + "observedSpanId": "" + }, + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -832,7 +667,6 @@ "api_version": 2, "rows": [ { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/jest-node/runner.case.cjs", "caller_functionname": "Object.", @@ -847,9 +681,13 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, - "project_id": "", + "output": { + "observedSpanId": "" + }, + "project_id": "", "root_span_id": "", "span_attributes": { "exec_counter": 7, @@ -860,59 +698,5 @@ } ] } - }, - { - "headers": null, - "jsonBody": { - "api_version": 2, - "rows": [ - { - "_is_merge": true, - "id": "", - "log_id": "g", - "metadata": { - "case": "current-span", - "scenario": "jest-node", - "testRunId": "" - }, - "metrics": { - "end": 0 - }, - "output": { - "observedSpanId": "" - }, - "project_id": "", - "root_span_id": "", - "span_id": "" - } - ] - }, - "method": "POST", - "path": "/logs3", - "query": null, - "rawBody": { - "api_version": 2, - "rows": [ - { - "_is_merge": true, - "id": "", - "log_id": "g", - "metadata": { - "case": "current-span", - "scenario": "jest-node", - "testRunId": "" - }, - "metrics": { - "end": 0 - }, - "output": { - "observedSpanId": "" - }, - "project_id": "", - "root_span_id": "", - "span_id": "" - } - ] - } } ] diff --git a/e2e/scenarios/trace-primitives-basic/__snapshots__/scenario.test.ts.snap b/e2e/scenarios/trace-primitives-basic/__snapshots__/scenario.test.ts.snap index b72d0fb0b..afe8ced5c 100644 --- a/e2e/scenarios/trace-primitives-basic/__snapshots__/scenario.test.ts.snap +++ b/e2e/scenarios/trace-primitives-basic/__snapshots__/scenario.test.ts.snap @@ -38,7 +38,6 @@ exports[`trace-primitives-basic collects a minimal manual trace tree > request-f "api_version": 2, "rows": [ { - "_is_merge": false, "context": { "caller_filename": "/e2e/scenarios/trace-primitives-basic/scenario.ts", "caller_functionname": "main", @@ -56,45 +55,11 @@ exports[`trace-primitives-basic collects a minimal manual trace tree > request-f "testRunId": "", }, "metrics": { + "end": 0, "start": 0, }, - "project_id": "", - "root_span_id": "", - "span_attributes": { - "exec_counter": 0, - "name": "trace-primitives-root", - "type": "task", - }, - "span_id": "", - }, - ], - }, - "method": "POST", - "path": "/logs3", - "query": null, - "rawBody": { - "api_version": 2, - "rows": [ - { - "_is_merge": false, - "context": { - "caller_filename": "/e2e/scenarios/trace-primitives-basic/scenario.ts", - "caller_functionname": "main", - "caller_lineno": 0, - }, - "created": "", - "id": "", - "input": { - "scenario": "trace-primitives-basic", - "testRunId": "", - }, - "log_id": "g", - "metadata": { - "scenario": "trace-primitives-basic", - "testRunId": "", - }, - "metrics": { - "start": 0, + "output": { + "status": "ok", }, "project_id": "", "root_span_id": "", @@ -105,14 +70,6 @@ exports[`trace-primitives-basic collects a minimal manual trace tree > request-f }, "span_id": "", }, - ], - }, - }, - { - "headers": null, - "jsonBody": { - "api_version": 2, - "rows": [ { "context": { "caller_filename": "/e2e/scenarios/trace-primitives-basic/scenario.ts", @@ -189,28 +146,47 @@ Error: basic boom "", ], }, + ], + }, + "method": "POST", + "path": "/logs3", + "query": null, + "rawBody": { + "api_version": 2, + "rows": [ { - "_is_merge": true, + "context": { + "caller_filename": "/e2e/scenarios/trace-primitives-basic/scenario.ts", + "caller_functionname": "main", + "caller_lineno": 0, + }, + "created": "", "id": "", + "input": { + "scenario": "trace-primitives-basic", + "testRunId": "", + }, "log_id": "g", + "metadata": { + "scenario": "trace-primitives-basic", + "testRunId": "", + }, "metrics": { "end": 0, + "start": 0, }, "output": { "status": "ok", }, "project_id": "", "root_span_id": "", + "span_attributes": { + "exec_counter": 0, + "name": "trace-primitives-root", + "type": "task", + }, "span_id": "", }, - ], - }, - "method": "POST", - "path": "/logs3", - "query": null, - "rawBody": { - "api_version": 2, - "rows": [ { "context": { "caller_filename": "/e2e/scenarios/trace-primitives-basic/scenario.ts", @@ -287,20 +263,6 @@ Error: basic boom "", ], }, - { - "_is_merge": true, - "id": "", - "log_id": "g", - "metrics": { - "end": 0, - }, - "output": { - "status": "ok", - }, - "project_id": "", - "root_span_id": "", - "span_id": "", - }, ], }, }, diff --git a/e2e/scenarios/wrap-vitest-suite-traces/__snapshots__/v2.log-payloads.json b/e2e/scenarios/wrap-vitest-suite-traces/__snapshots__/v2.log-payloads.json index 2710d4196..7f312e0c4 100644 --- a/e2e/scenarios/wrap-vitest-suite-traces/__snapshots__/v2.log-payloads.json +++ b/e2e/scenarios/wrap-vitest-suite-traces/__snapshots__/v2.log-payloads.json @@ -1,6 +1,5 @@ [ { - "_is_merge": false, "context": { "caller_filename": "/js/src/wrappers/shared/traced-eval.ts", "caller_functionname": "Module.runTracedEval", @@ -15,9 +14,16 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, + "output": { + "phase": "simple-pass" + }, "root_span_id": "", + "scores": { + "pass": 1 + }, "span_attributes": { "exec_counter": 0, "name": "vitest simple pass", diff --git a/e2e/scenarios/wrap-vitest-suite-traces/__snapshots__/v3.log-payloads.json b/e2e/scenarios/wrap-vitest-suite-traces/__snapshots__/v3.log-payloads.json index cae56a5aa..23e2e158a 100644 --- a/e2e/scenarios/wrap-vitest-suite-traces/__snapshots__/v3.log-payloads.json +++ b/e2e/scenarios/wrap-vitest-suite-traces/__snapshots__/v3.log-payloads.json @@ -1,6 +1,5 @@ [ { - "_is_merge": false, "context": { "caller_filename": "/js/src/wrappers/shared/traced-eval.ts", "caller_functionname": "runTracedEval", @@ -15,9 +14,16 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, + "output": { + "phase": "simple-pass" + }, "root_span_id": "", + "scores": { + "pass": 1 + }, "span_attributes": { "exec_counter": 0, "name": "vitest simple pass", diff --git a/e2e/scenarios/wrap-vitest-suite-traces/__snapshots__/v4.1.log-payloads.json b/e2e/scenarios/wrap-vitest-suite-traces/__snapshots__/v4.1.log-payloads.json index cae56a5aa..23e2e158a 100644 --- a/e2e/scenarios/wrap-vitest-suite-traces/__snapshots__/v4.1.log-payloads.json +++ b/e2e/scenarios/wrap-vitest-suite-traces/__snapshots__/v4.1.log-payloads.json @@ -1,6 +1,5 @@ [ { - "_is_merge": false, "context": { "caller_filename": "/js/src/wrappers/shared/traced-eval.ts", "caller_functionname": "runTracedEval", @@ -15,9 +14,16 @@ "testRunId": "" }, "metrics": { + "end": 0, "start": 0 }, + "output": { + "phase": "simple-pass" + }, "root_span_id": "", + "scores": { + "pass": 1 + }, "span_attributes": { "exec_counter": 0, "name": "vitest simple pass", From b7c12d55f4e02d2d7256582bfa2a936853304d27 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Tue, 24 Mar 2026 18:25:33 +0100 Subject: [PATCH 3/4] Remove leftover from gen ai flakes --- e2e/vitest.config.mts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/e2e/vitest.config.mts b/e2e/vitest.config.mts index 3a1122424..51b226e0d 100644 --- a/e2e/vitest.config.mts +++ b/e2e/vitest.config.mts @@ -1,13 +1,8 @@ import { defineConfig } from "vitest/config"; import { E2E_TAGS } from "./helpers/tags"; -const hasGoogleGenAICredentials = Boolean( - process.env.GOOGLE_API_KEY || process.env.GEMINI_API_KEY, -); - export default defineConfig({ test: { - fileParallelism: !hasGoogleGenAICredentials, hookTimeout: 20_000, include: ["scenarios/**/*.test.ts"], setupFiles: ["./vitest.setup.ts"], From f4fa670861e54084fa4630477533fee9447509be Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Wed, 25 Mar 2026 11:33:12 +0100 Subject: [PATCH 4/4] fix? --- e2e/helpers/scenario-harness.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/e2e/helpers/scenario-harness.ts b/e2e/helpers/scenario-harness.ts index 321dcf2d2..fd96a67be 100644 --- a/e2e/helpers/scenario-harness.ts +++ b/e2e/helpers/scenario-harness.ts @@ -8,6 +8,7 @@ import { type CapturedLogEvent, type CapturedLogPayload, type CapturedRequest, + type JsonValue, } from "./mock-braintrust-server"; import { installScenarioDependencies, @@ -126,13 +127,15 @@ function mergeLogs3RequestBody( mergedRows.set(key, mergeRequestRow(mergedRows.get(key), row)); } + const rows = rowOrder + .map((key) => mergedRows.get(key)) + .filter((row): row is Record => row !== undefined); + return { ...left, ...right, - rows: rowOrder - .map((key) => mergedRows.get(key)) - .filter((row): row is Record => row !== undefined), - }; + rows: rows as JsonValue[], + } as JsonValue; } function normalizeCapturedRequests(