Skip to content
Merged
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
8 changes: 8 additions & 0 deletions src/sentry/static/sentry/app/bootstrap/initializeSdk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {ExtraErrorData} from '@sentry/integrations';
import * as Sentry from '@sentry/react';
import SentryRRWeb from '@sentry/rrweb';
import {Integrations} from '@sentry/tracing';
import {_browserPerformanceTimeOriginMode} from '@sentry/utils';

import {DISABLE_RR_WEB, SPA_DSN} from 'app/constants';
import {Config} from 'app/types';
Expand Down Expand Up @@ -79,6 +80,13 @@ export function initializeSdk(config: Config, {routes}: {routes?: Function} = {}
tracesSampleRate,
});

// Track timeOrigin Selection by the SDK to see if it improves transaction durations
Sentry.addGlobalEventProcessor((event: Sentry.Event, _hint?: Sentry.EventHint) => {
event.tags = event.tags || {};
event.tags['timeOrigin.mode'] = _browserPerformanceTimeOriginMode;
return event;
});

if (userIdentity) {
Sentry.setUser(userIdentity);
}
Expand Down