Skip to content

Commit 8fffb16

Browse files
committed
formatting
1 parent 829d885 commit 8fffb16

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

dev-packages/e2e-tests/test-applications/astro-5/sentry.client.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Sentry.init({
1212
return {
1313
...opts,
1414
name: window.location.pathname,
15-
}
15+
};
1616
}
1717
return opts;
18-
}
19-
})
18+
},
19+
}),
2020
],
2121
});

dev-packages/e2e-tests/test-applications/astro-5/src/pages/blog/[slug].astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Layout from '../../layouts/Layout.astro';
44
export const prerender = false;
55
66
const { slug } = Astro.params;
7-
87
---
98

109
<Layout title="Dynamic SSR page">

packages/astro/src/client/browserTracingIntegration.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
import { browserTracingIntegration as originalBrowserTracingIntegration, startBrowserTracingPageLoadSpan, WINDOW } from '@sentry/browser';
1+
import {
2+
browserTracingIntegration as originalBrowserTracingIntegration,
3+
startBrowserTracingPageLoadSpan,
4+
WINDOW,
5+
} from '@sentry/browser';
26
import type { Integration, TransactionSource } from '@sentry/core';
3-
import { browserPerformanceTimeOrigin, debug, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core';
7+
import {
8+
browserPerformanceTimeOrigin,
9+
debug,
10+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
11+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
12+
} from '@sentry/core';
413
import { DEBUG_BUILD } from '../debug-build';
514

615
/**
@@ -18,7 +27,7 @@ function getMetaContent(metaName: string): string | undefined {
1827
export function browserTracingIntegration(
1928
options: Parameters<typeof originalBrowserTracingIntegration>[0] = {},
2029
): Integration {
21-
const integration = originalBrowserTracingIntegration({...options, instrumentPageLoad: false});
30+
const integration = originalBrowserTracingIntegration({ ...options, instrumentPageLoad: false });
2231

2332
return {
2433
...integration,
@@ -43,11 +52,11 @@ export function browserTracingIntegration(
4352
});
4453
}
4554
}
46-
}
55+
},
4756
};
4857
}
4958

50-
function getPageloadSpanName(): {name: string, source: TransactionSource} {
59+
function getPageloadSpanName(): { name: string; source: TransactionSource } {
5160
try {
5261
const routeNameFromMetaTags = getMetaContent('sentry-route-name');
5362
if (routeNameFromMetaTags) {

0 commit comments

Comments
 (0)