Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(meta-sdks): Remove runtime tags #13105

Merged
merged 10 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ test('Sends a pageload transaction to Sentry', async ({ page }) => {
expect(transactionEvent).toEqual(
expect.objectContaining({
transaction: '/',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -59,7 +58,6 @@ test('captures a navigation transcation to Sentry', async ({ page }) => {
expect(clientTxnEvent).toEqual(
expect.objectContaining({
transaction: '/user/[id]',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ test('Sends server-side transactions to Sentry', async ({ baseURL }) => {
}),
status: 'ok',
},
runtime: {
name: 'node',
version: expect.any(String),
},
}),
spans: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ test('Sends a pageload transaction', async ({ page }) => {
expect(transactionEvent).toEqual(
expect.objectContaining({
transaction: '/',
tags: { runtime: 'browser' },
transaction_info: { source: 'url' },
type: 'transaction',
contexts: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ test.describe('client-side errors', () => {
},
transaction: '/client-error',
});
expect(error.tags).toMatchObject({ runtime: 'browser' });
expect(error.transaction).toEqual('/client-error');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ test.describe('server-side errors', () => {

const error = await errorEventPromise;

expect(error.tags).toMatchObject({ runtime: 'node' });
expect(error).toMatchObject({
exception: {
values: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ test.describe('client-side errors', () => {
}),
);

expect(errorEvent.tags).toMatchObject({ runtime: 'browser' });

expect(errorEvent.transaction).toEqual('/client-error');
});

Expand All @@ -53,7 +51,6 @@ test.describe('client-side errors', () => {
}),
);

expect(errorEvent.tags).toMatchObject({ runtime: 'browser' });
expect(errorEvent.transaction).toEqual('/universal-load-error');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ test.describe('server-side errors', () => {
}),
);

expect(errorEvent.tags).toMatchObject({ runtime: 'node' });

expect(errorEvent.request).toEqual({
cookies: {},
headers: expect.objectContaining({
Expand Down Expand Up @@ -49,8 +47,6 @@ test.describe('server-side errors', () => {
}),
);

expect(errorEvent.tags).toMatchObject({ runtime: 'node' });

expect(errorEvent.request).toEqual({
cookies: {},
headers: expect.objectContaining({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ test('server pageload request span has nested request span for sub request', asy

expect(serverTxnEvent).toMatchObject({
transaction: 'GET /server-load-fetch',
tags: { runtime: 'node' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ test.describe('performance events', () => {

expect(clientTxnEvent).toMatchObject({
transaction: '/users/[id]',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand All @@ -34,7 +33,6 @@ test.describe('performance events', () => {

expect(serverTxnEvent).toMatchObject({
transaction: 'GET /users/[id]',
tags: { runtime: 'node' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -77,7 +75,6 @@ test.describe('performance events', () => {

expect(clientTxnEvent).toMatchObject({
transaction: '/users',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand All @@ -90,7 +87,6 @@ test.describe('performance events', () => {

expect(serverTxnEvent).toMatchObject({
transaction: 'GET /users',
tags: { runtime: 'node' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -130,7 +126,6 @@ test.describe('performance events', () => {

expect(clientTxnEvent).toMatchObject({
transaction: '/universal-load-fetch',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand All @@ -143,7 +138,6 @@ test.describe('performance events', () => {

expect(serverTxnEvent).toMatchObject({
transaction: 'GET /api/users',
tags: { runtime: 'node' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -205,7 +199,6 @@ test.describe('performance events', () => {

expect(pageloadTxnEvent).toMatchObject({
transaction: '/',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand All @@ -218,7 +211,6 @@ test.describe('performance events', () => {

expect(navigationTxnEvent).toMatchObject({
transaction: '/users/[id]',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -289,7 +281,6 @@ test.describe('performance events', () => {

expect(redirect1TxnEvent).toMatchObject({
transaction: '/redirect1',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -327,7 +318,6 @@ test.describe('performance events', () => {

expect(redirect2TxnEvent).toMatchObject({
transaction: '/redirect2',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -365,7 +355,6 @@ test.describe('performance events', () => {

expect(redirect3TxnEvent).toMatchObject({
transaction: '/users/[id]',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ test.describe('client-side errors', () => {
}),
);

expect(errorEvent.tags).toMatchObject({ runtime: 'browser' });

expect(errorEvent.transaction).toEqual('/client-error');
});

Expand All @@ -53,7 +51,6 @@ test.describe('client-side errors', () => {
}),
);

expect(errorEvent.tags).toMatchObject({ runtime: 'browser' });
expect(errorEvent.transaction).toEqual('/universal-load-error');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ test.describe('server-side errors', () => {
in_app: true,
}),
);

expect(errorEvent.tags).toMatchObject({ runtime: 'node' });
});

test('captures server load error', async ({ page }) => {
Expand All @@ -38,8 +36,6 @@ test.describe('server-side errors', () => {
in_app: true,
}),
);

expect(errorEvent.tags).toMatchObject({ runtime: 'node' });
});

test('captures server route (GET) error', async ({ page }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ test('server pageload request span has nested request span for sub request', asy

expect(serverTxnEvent).toMatchObject({
transaction: 'GET /server-load-fetch',
tags: { runtime: 'node' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ test.describe('performance events', () => {

expect(clientTxnEvent).toMatchObject({
transaction: '/users/[id]',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand All @@ -34,7 +33,6 @@ test.describe('performance events', () => {

expect(serverTxnEvent).toMatchObject({
transaction: 'GET /users/[id]',
tags: { runtime: 'node' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -77,7 +75,6 @@ test.describe('performance events', () => {

expect(clientTxnEvent).toMatchObject({
transaction: '/users',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand All @@ -90,7 +87,6 @@ test.describe('performance events', () => {

expect(serverTxnEvent).toMatchObject({
transaction: 'GET /users',
tags: { runtime: 'node' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -130,7 +126,6 @@ test.describe('performance events', () => {

expect(clientTxnEvent).toMatchObject({
transaction: '/universal-load-fetch',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand All @@ -143,7 +138,6 @@ test.describe('performance events', () => {

expect(serverTxnEvent).toMatchObject({
transaction: 'GET /api/users',
tags: { runtime: 'node' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -205,7 +199,6 @@ test.describe('performance events', () => {

expect(pageloadTxnEvent).toMatchObject({
transaction: '/',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand All @@ -218,7 +211,6 @@ test.describe('performance events', () => {

expect(navigationTxnEvent).toMatchObject({
transaction: '/users/[id]',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -289,7 +281,6 @@ test.describe('performance events', () => {

expect(redirect1TxnEvent).toMatchObject({
transaction: '/redirect1',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -327,7 +318,6 @@ test.describe('performance events', () => {

expect(redirect2TxnEvent).toMatchObject({
transaction: '/redirect2',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -365,7 +355,6 @@ test.describe('performance events', () => {

expect(redirect3TxnEvent).toMatchObject({
transaction: '/users/[id]',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ test.describe('client-side errors', () => {
in_app: true,
}),
);

expect(errorEvent.tags).toMatchObject({ runtime: 'browser' });
});

test('captures universal load error', async ({ page }) => {
Expand All @@ -49,7 +47,5 @@ test.describe('client-side errors', () => {
in_app: true,
}),
);

expect(errorEvent.tags).toMatchObject({ runtime: 'browser' });
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ test.describe('server-side errors', () => {
}),
);

expect(errorEvent.tags).toMatchObject({ runtime: 'node' });

expect(errorEvent.request).toEqual({
cookies: {},
headers: expect.objectContaining({
Expand Down Expand Up @@ -51,8 +49,6 @@ test.describe('server-side errors', () => {
}),
);

expect(errorEvent.tags).toMatchObject({ runtime: 'node' });

expect(errorEvent.request).toEqual({
cookies: {},
headers: expect.objectContaining({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ test('server pageload request span has nested request span for sub request', asy

expect(serverTxnEvent).toMatchObject({
transaction: 'GET /server-load-fetch',
tags: { runtime: 'node' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ test('captures a distributed pageload trace', async ({ page }) => {

expect(clientTxnEvent).toMatchObject({
transaction: '/users/[id]',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand All @@ -53,7 +52,6 @@ test('captures a distributed pageload trace', async ({ page }) => {

expect(serverTxnEvent).toMatchObject({
transaction: 'GET /users/[id]',
tags: { runtime: 'node' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down Expand Up @@ -92,7 +90,6 @@ test('captures a distributed navigation trace', async ({ page }) => {

expect(clientTxnEvent).toMatchObject({
transaction: '/users/[id]',
tags: { runtime: 'browser' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand All @@ -105,7 +102,6 @@ test('captures a distributed navigation trace', async ({ page }) => {

expect(serverTxnEvent).toMatchObject({
transaction: 'GET /users/[id]',
tags: { runtime: 'node' },
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
Expand Down
Loading
Loading