diff --git a/packages/nextjs/test/integration/test/client/tracingFetch.test.ts b/packages/nextjs/test/integration/test/client/tracingFetch.test.ts index 88634c92012e..b1eb8a5f1bb8 100644 --- a/packages/nextjs/test/integration/test/client/tracingFetch.test.ts +++ b/packages/nextjs/test/integration/test/client/tracingFetch.test.ts @@ -36,6 +36,7 @@ test('should correctly instrument `fetch` for performance tracing', async ({ pag url: 'http://example.com', type: 'fetch', 'http.response_content_length': expect.any(Number), + 'http.response.status_code': 200, }, description: 'GET http://example.com', op: 'http.client', diff --git a/packages/node/test/integrations/undici.test.ts b/packages/node/test/integrations/undici.test.ts index f4925f7046a2..46756cbe88cd 100644 --- a/packages/node/test/integrations/undici.test.ts +++ b/packages/node/test/integrations/undici.test.ts @@ -56,9 +56,9 @@ conditionalTest({ min: 16 })('Undici integration', () => { { description: 'GET http://localhost:18099/', op: 'http.client', - data: { + data: expect.objectContaining({ 'http.method': 'GET', - }, + }), }, ], [ @@ -68,10 +68,10 @@ conditionalTest({ min: 16 })('Undici integration', () => { { description: 'GET http://localhost:18099/', op: 'http.client', - data: { + data: expect.objectContaining({ 'http.method': 'GET', 'http.query': '?foo=bar', - }, + }), }, ], [ @@ -80,9 +80,9 @@ conditionalTest({ min: 16 })('Undici integration', () => { { method: 'POST' }, { description: 'POST http://localhost:18099/', - data: { + data: expect.objectContaining({ 'http.method': 'POST', - }, + }), }, ], [ @@ -91,9 +91,9 @@ conditionalTest({ min: 16 })('Undici integration', () => { { method: 'POST' }, { description: 'POST http://localhost:18099/', - data: { + data: expect.objectContaining({ 'http.method': 'POST', - }, + }), }, ], [