We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 949f1b6 commit f16dd8bCopy full SHA for f16dd8b
packages/tracing/src/browser/metrics.ts
@@ -23,7 +23,7 @@ export class MetricsInstrumentation {
23
private _clsEntry: LayoutShift | undefined;
24
25
public constructor() {
26
- if (!isNodeEnv() && global?.performance) {
+ if (!isNodeEnv() && global?.performance && global?.document) {
27
if (global.performance.mark) {
28
global.performance.mark('sentry-tracing-init');
29
}
0 commit comments