Skip to content

Commit fad409b

Browse files
committed
update sveltekit origins
1 parent b64f9cb commit fad409b

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

packages/sveltekit/src/client/load.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function wrapLoadWithSentry<T extends (...args: any) => any>(origLoad: T)
8989
return trace(
9090
{
9191
op: 'function.sveltekit.load',
92-
origin: 'auto.ui.sveltekit',
92+
origin: 'auto.function.sveltekit',
9393
name: routeId ? routeId : event.url.pathname,
9494
status: 'ok',
9595
metadata: {

packages/sveltekit/src/client/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function instrumentPageload(startTransactionFn: (context: TransactionContext) =>
3838
const pageloadTransaction = startTransactionFn({
3939
name: initialPath,
4040
op: 'pageload',
41-
origin: 'auto.http.sveltekit',
41+
origin: 'auto.pageload.sveltekit',
4242
description: initialPath,
4343
tags: {
4444
...DEFAULT_TAGS,
@@ -103,7 +103,7 @@ function instrumentNavigations(startTransactionFn: (context: TransactionContext)
103103
activeTransaction = startTransactionFn({
104104
name: parameterizedRouteDestination || rawRouteDestination || 'unknown',
105105
op: 'navigation',
106-
origin: 'auto.http.sveltekit',
106+
origin: 'auto.navigation.sveltekit',
107107
metadata: { source: parameterizedRouteDestination ? 'route' : 'url' },
108108
tags: {
109109
...DEFAULT_TAGS,

packages/sveltekit/src/server/load.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function wrapLoadWithSentry<T extends (...args: any) => any>(origLoad: T)
7272

7373
const traceLoadContext: TransactionContext = {
7474
op: 'function.sveltekit.load',
75-
origin: 'auto.ui.sveltekit.server_load',
75+
origin: 'auto.function.sveltekit',
7676
name: routeId ? routeId : event.url.pathname,
7777
status: 'ok',
7878
metadata: {
@@ -127,7 +127,7 @@ export function wrapServerLoadWithSentry<T extends (...args: any) => any>(origSe
127127

128128
const traceLoadContext: TransactionContext = {
129129
op: 'function.sveltekit.server.load',
130-
origin: 'auto.ui.sveltekit.server_load',
130+
origin: 'auto.function.sveltekit',
131131
name: routeId ? routeId : event.url.pathname,
132132
status: 'ok',
133133
metadata: {

packages/sveltekit/test/client/load.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ describe('wrapLoadWithSentry', () => {
200200
expect(mockTrace).toHaveBeenCalledWith(
201201
{
202202
op: 'function.sveltekit.load',
203-
origin: 'auto.ui.sveltekit',
203+
origin: 'auto.function.sveltekit',
204204
name: '/users/[id]',
205205
status: 'ok',
206206
metadata: {
@@ -297,7 +297,7 @@ describe('wrapLoadWithSentry', () => {
297297
1,
298298
{
299299
op: 'function.sveltekit.load',
300-
origin: 'auto.ui.sveltekit',
300+
origin: 'auto.function.sveltekit',
301301
name: '/users/[id]',
302302
status: 'ok',
303303
metadata: {
@@ -338,7 +338,7 @@ describe('wrapLoadWithSentry', () => {
338338
1,
339339
{
340340
op: 'function.sveltekit.load',
341-
origin: 'auto.ui.sveltekit',
341+
origin: 'auto.function.sveltekit',
342342
name: '/users/[id]',
343343
status: 'ok',
344344
metadata: {
@@ -367,7 +367,7 @@ describe('wrapLoadWithSentry', () => {
367367
expect(mockTrace).toHaveBeenCalledWith(
368368
{
369369
op: 'function.sveltekit.load',
370-
origin: 'auto.ui.sveltekit',
370+
origin: 'auto.function.sveltekit',
371371
name: '/users/[id]',
372372
status: 'ok',
373373
metadata: {
@@ -395,7 +395,7 @@ describe('wrapLoadWithSentry', () => {
395395
expect(mockTrace).toHaveBeenCalledWith(
396396
{
397397
op: 'function.sveltekit.load',
398-
origin: 'auto.ui.sveltekit',
398+
origin: 'auto.function.sveltekit',
399399
name: '/users/[id]',
400400
status: 'ok',
401401
metadata: {

packages/sveltekit/test/client/router.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('sveltekitRoutingInstrumentation', () => {
5353
expect(mockedStartTransaction).toHaveBeenCalledWith({
5454
name: '/',
5555
op: 'pageload',
56-
origin: 'auto.http.sveltekit',
56+
origin: 'auto.pageload.sveltekit',
5757
description: '/',
5858
tags: {
5959
'routing.instrumentation': '@sentry/sveltekit',
@@ -106,7 +106,7 @@ describe('sveltekitRoutingInstrumentation', () => {
106106
expect(mockedStartTransaction).toHaveBeenCalledWith({
107107
name: '/users/[id]',
108108
op: 'navigation',
109-
origin: 'auto.http.sveltekit',
109+
origin: 'auto.navigation.sveltekit',
110110
metadata: {
111111
source: 'route',
112112
},
@@ -157,7 +157,7 @@ describe('sveltekitRoutingInstrumentation', () => {
157157
expect(mockedStartTransaction).toHaveBeenCalledWith({
158158
name: '/users/[id]',
159159
op: 'navigation',
160-
origin: 'auto.http.sveltekit',
160+
origin: 'auto.navigation.sveltekit',
161161
metadata: {
162162
source: 'route',
163163
},

packages/sveltekit/test/server/load.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ describe('wrapLoadWithSentry calls trace', () => {
230230
expect(mockTrace).toHaveBeenCalledWith(
231231
{
232232
op: 'function.sveltekit.load',
233-
origin: 'auto.ui.sveltekit.server_load',
233+
origin: 'auto.function.sveltekit',
234234
name: '/users/[id]',
235235
status: 'ok',
236236
metadata: {
@@ -250,7 +250,7 @@ describe('wrapLoadWithSentry calls trace', () => {
250250
expect(mockTrace).toHaveBeenCalledWith(
251251
{
252252
op: 'function.sveltekit.load',
253-
origin: 'auto.ui.sveltekit.server_load',
253+
origin: 'auto.function.sveltekit',
254254
name: '/users/123',
255255
status: 'ok',
256256
metadata: {
@@ -285,7 +285,7 @@ describe('wrapServerLoadWithSentry calls trace', () => {
285285
expect(mockTrace).toHaveBeenCalledWith(
286286
{
287287
op: 'function.sveltekit.server.load',
288-
origin: 'auto.ui.sveltekit.server_load',
288+
origin: 'auto.function.sveltekit',
289289
name: '/users/[id]',
290290
parentSampled: true,
291291
parentSpanId: '1234567890abcdef',
@@ -320,7 +320,7 @@ describe('wrapServerLoadWithSentry calls trace', () => {
320320
expect(mockTrace).toHaveBeenCalledWith(
321321
{
322322
op: 'function.sveltekit.server.load',
323-
origin: 'auto.ui.sveltekit.server_load',
323+
origin: 'auto.function.sveltekit',
324324
name: '/users/[id]',
325325
status: 'ok',
326326
data: {
@@ -343,7 +343,7 @@ describe('wrapServerLoadWithSentry calls trace', () => {
343343
expect(mockTrace).toHaveBeenCalledWith(
344344
{
345345
op: 'function.sveltekit.server.load',
346-
origin: 'auto.ui.sveltekit.server_load',
346+
origin: 'auto.function.sveltekit',
347347
name: '/users/[id]',
348348
parentSampled: true,
349349
parentSpanId: '1234567890abcdef',
@@ -373,7 +373,7 @@ describe('wrapServerLoadWithSentry calls trace', () => {
373373
expect(mockTrace).toHaveBeenCalledWith(
374374
{
375375
op: 'function.sveltekit.server.load',
376-
origin: 'auto.ui.sveltekit.server_load',
376+
origin: 'auto.function.sveltekit',
377377
name: '/users/123',
378378
parentSampled: true,
379379
parentSpanId: '1234567890abcdef',

0 commit comments

Comments
 (0)