Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -36,6 +36,11 @@ test.describe('client-specific performance events', () => {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
data: {
'url.path': '/nav1',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/nav1$/),
'url.template': '/nav1',
},
},
},
});
Expand All @@ -49,6 +54,11 @@ test.describe('client-specific performance events', () => {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
data: {
'url.path': '/',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/$/),
'url.template': '/',
},
},
},
});
Expand All @@ -62,6 +72,11 @@ test.describe('client-specific performance events', () => {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
data: {
'url.path': '/nav2',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/nav2$/),
'url.template': '/nav2',
},
},
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ test('capture a distributed pageload trace', async ({ page }) => {
trace: {
op: 'pageload',
origin: 'auto.pageload.sveltekit',
data: {
'url.path': '/users/123xyz',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/users\/123xyz$/),
'url.template': '/users/[id]',
},
},
},
});
Expand Down Expand Up @@ -88,6 +93,11 @@ test('capture a distributed navigation trace', async ({ page }) => {
trace: {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
data: {
'url.path': '/users',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/users$/),
'url.template': '/users',
},
},
},
});
Expand Down Expand Up @@ -139,6 +149,11 @@ test('record client-side universal load fetch span and trace', async ({ page })
trace: {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
data: {
'url.path': '/universal-load-fetch',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/universal-load-fetch$/),
'url.template': '/universal-load-fetch',
},
},
},
});
Expand Down Expand Up @@ -212,6 +227,11 @@ test('captures a navigation transaction directly after pageload', async ({ page
trace: {
op: 'pageload',
origin: 'auto.pageload.sveltekit',
data: {
'url.path': '/',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/$/),
'url.template': '/',
},
},
},
});
Expand All @@ -228,6 +248,9 @@ test('captures a navigation transaction directly after pageload', async ({ page
'sentry.sveltekit.navigation.from': '/',
'sentry.sveltekit.navigation.to': '/users/[id]',
'sentry.sveltekit.navigation.type': 'link',
'url.path': '/users/123abc',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/users\/123abc$/),
'url.template': '/users/[id]',
},
},
},
Expand Down Expand Up @@ -290,6 +313,9 @@ test('captures one navigation transaction per redirect', async ({ page }) => {
'sentry.sveltekit.navigation.from': '/',
'sentry.sveltekit.navigation.to': '/redirect1',
'sentry.sample_rate': 1,
'url.path': '/redirect1',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/redirect1$/),
'url.template': '/redirect1',
},
},
},
Expand Down Expand Up @@ -327,6 +353,9 @@ test('captures one navigation transaction per redirect', async ({ page }) => {
'sentry.sveltekit.navigation.from': '/',
'sentry.sveltekit.navigation.to': '/redirect2',
'sentry.sample_rate': 1,
'url.path': '/redirect2',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/redirect2$/),
'url.template': '/redirect2',
},
},
},
Expand Down Expand Up @@ -364,6 +393,9 @@ test('captures one navigation transaction per redirect', async ({ page }) => {
'sentry.sveltekit.navigation.from': '/',
'sentry.sveltekit.navigation.to': '/users/[id]',
'sentry.sample_rate': 1,
'url.path': '/users/789',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/users\/789$/),
'url.template': '/users/[id]',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ test.describe('client-specific performance events', () => {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
data: {
'url.path': '/nav1',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/nav1$/),
'url.template': '/nav1',
},
},
},
});
Expand All @@ -49,6 +54,11 @@ test.describe('client-specific performance events', () => {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
data: {
'url.path': '/',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/$/),
'url.template': '/',
},
},
},
});
Expand All @@ -62,6 +72,11 @@ test.describe('client-specific performance events', () => {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
data: {
'url.path': '/nav2',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/nav2$/),
'url.template': '/nav2',
},
},
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ test.describe('performance events', () => {
trace: {
op: 'pageload',
origin: 'auto.pageload.sveltekit',
data: {
'url.path': '/users/123xyz',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/users\/123xyz$/),
'url.template': '/users/[id]',
},
},
},
});
Expand Down Expand Up @@ -81,6 +86,11 @@ test.describe('performance events', () => {
trace: {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
data: {
'url.path': '/users',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/users$/),
'url.template': '/users',
},
},
},
});
Expand Down Expand Up @@ -132,6 +142,11 @@ test.describe('performance events', () => {
trace: {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
data: {
'url.path': '/universal-load-fetch',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/universal-load-fetch$/),
'url.template': '/universal-load-fetch',
},
},
},
});
Expand Down Expand Up @@ -205,6 +220,11 @@ test.describe('performance events', () => {
trace: {
op: 'pageload',
origin: 'auto.pageload.sveltekit',
data: {
'url.path': '/',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/$/),
'url.template': '/',
},
},
},
});
Expand All @@ -221,6 +241,9 @@ test.describe('performance events', () => {
'sentry.sveltekit.navigation.from': '/',
'sentry.sveltekit.navigation.to': '/users/[id]',
'sentry.sveltekit.navigation.type': 'link',
'url.path': '/users/123abc',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/users\/123abc$/),
'url.template': '/users/[id]',
},
},
},
Expand Down Expand Up @@ -283,6 +306,9 @@ test.describe('performance events', () => {
'sentry.sveltekit.navigation.from': '/',
'sentry.sveltekit.navigation.to': '/redirect1',
'sentry.sample_rate': 1,
'url.path': '/redirect1',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/redirect1$/),
'url.template': '/redirect1',
},
},
},
Expand Down Expand Up @@ -320,6 +346,9 @@ test.describe('performance events', () => {
'sentry.sveltekit.navigation.from': '/',
'sentry.sveltekit.navigation.to': '/redirect2',
'sentry.sample_rate': 1,
'url.path': '/redirect2',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/redirect2$/),
'url.template': '/redirect2',
},
},
},
Expand Down Expand Up @@ -357,6 +386,9 @@ test.describe('performance events', () => {
'sentry.sveltekit.navigation.from': '/',
'sentry.sveltekit.navigation.to': '/users/[id]',
'sentry.sample_rate': 1,
'url.path': '/users/789',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/users\/789$/),
'url.template': '/users/[id]',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ test.describe('client-specific performance events', () => {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
data: {
'url.path': '/nav1',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/nav1$/),
'url.template': '/nav1',
},
},
},
});
Expand All @@ -44,6 +49,11 @@ test.describe('client-specific performance events', () => {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
data: {
'url.path': '/',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/$/),
'url.template': '/',
},
},
},
});
Expand All @@ -57,6 +67,11 @@ test.describe('client-specific performance events', () => {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
data: {
'url.path': '/nav2',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/nav2$/),
'url.template': '/nav2',
},
},
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ test.describe('performance events', () => {
trace: {
op: 'pageload',
origin: 'auto.pageload.sveltekit',
data: {
'url.path': '/users/123xyz',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/users\/123xyz$/),
'url.template': '/users/[id]',
},
},
},
});
Expand Down Expand Up @@ -81,6 +86,11 @@ test.describe('performance events', () => {
trace: {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
data: {
'url.path': '/users',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/users$/),
'url.template': '/users',
},
},
},
});
Expand Down Expand Up @@ -132,6 +142,11 @@ test.describe('performance events', () => {
trace: {
op: 'navigation',
origin: 'auto.navigation.sveltekit',
data: {
'url.path': '/universal-load-fetch',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/universal-load-fetch$/),
'url.template': '/universal-load-fetch',
},
},
},
});
Expand Down Expand Up @@ -205,6 +220,11 @@ test.describe('performance events', () => {
trace: {
op: 'pageload',
origin: 'auto.pageload.sveltekit',
data: {
'url.path': '/',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/$/),
'url.template': '/',
},
},
},
});
Expand All @@ -221,6 +241,9 @@ test.describe('performance events', () => {
'sentry.sveltekit.navigation.from': '/',
'sentry.sveltekit.navigation.to': '/users/[id]',
'sentry.sveltekit.navigation.type': 'link',
'url.path': '/users/123abc',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/users\/123abc$/),
'url.template': '/users/[id]',
},
},
},
Expand Down Expand Up @@ -283,6 +306,9 @@ test.describe('performance events', () => {
'sentry.sveltekit.navigation.from': '/',
'sentry.sveltekit.navigation.to': '/redirect1',
'sentry.sample_rate': 1,
'url.path': '/redirect1',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/redirect1$/),
'url.template': '/redirect1',
},
},
},
Expand Down Expand Up @@ -320,6 +346,9 @@ test.describe('performance events', () => {
'sentry.sveltekit.navigation.from': '/',
'sentry.sveltekit.navigation.to': '/redirect2',
'sentry.sample_rate': 1,
'url.path': '/redirect2',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/redirect2$/),
'url.template': '/redirect2',
},
},
},
Expand Down Expand Up @@ -357,6 +386,9 @@ test.describe('performance events', () => {
'sentry.sveltekit.navigation.from': '/',
'sentry.sveltekit.navigation.to': '/users/[id]',
'sentry.sample_rate': 1,
'url.path': '/users/789',
'url.full': expect.stringMatching(/^https?:\/\/localhost:\d+\/users\/789$/),
'url.template': '/users/[id]',
},
},
},
Expand Down
1 change: 1 addition & 0 deletions packages/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"dependencies": {
"@sentry/cloudflare": "10.64.0",
"@sentry/core": "10.64.0",
"@sentry/conventions": "^0.15.1",
"@sentry/node": "10.64.0",
"@sentry/svelte": "10.64.0",
"@sentry/vite-plugin": "^5.3.0",
Expand Down
Loading
Loading