From 3b3d366aea1bead57318f79718d16bce7e59f462 Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Wed, 17 Dec 2025 11:31:13 +0100 Subject: [PATCH] chore(e2e): Remove check on `http.response_content_length_uncompressed` as its unreliable and flaky This comes strictly from OTel and we don't really need to assert on it. --- .../node-express-esm-preload/tests/server.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dev-packages/e2e-tests/test-applications/node-express-esm-preload/tests/server.test.ts b/dev-packages/e2e-tests/test-applications/node-express-esm-preload/tests/server.test.ts index 12c2a55166f9..706fe1b4460f 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-esm-preload/tests/server.test.ts +++ b/dev-packages/e2e-tests/test-applications/node-express-esm-preload/tests/server.test.ts @@ -131,12 +131,11 @@ test('Should record spans from http instrumentation', async ({ request }) => { expect(httpClientSpan).toEqual({ span_id: expect.stringMatching(/[a-f0-9]{16}/), trace_id: expect.stringMatching(/[a-f0-9]{32}/), - data: { + data: expect.objectContaining({ 'http.flavor': '1.1', 'http.host': 'example.com:80', 'http.method': 'GET', 'http.response.status_code': 200, - 'http.response_content_length_uncompressed': expect.any(Number), 'http.status_code': 200, 'http.status_text': 'OK', 'http.target': '/', @@ -149,7 +148,7 @@ test('Should record spans from http instrumentation', async ({ request }) => { 'sentry.op': 'http.client', 'sentry.origin': 'auto.http.otel.http', url: 'http://example.com/', - }, + }), description: 'GET http://example.com/', parent_span_id: expect.stringMatching(/[a-f0-9]{16}/), start_timestamp: expect.any(Number),