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
3 changes: 1 addition & 2 deletions static/app/bootstrap/initializeSdk.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// eslint-disable-next-line simple-import-sort/imports
import * as Sentry from '@sentry/react';
import {type Event, _browserPerformanceTimeOriginMode} from '@sentry/core';
import type {Event} from '@sentry/core';

import {SENTRY_RELEASE_VERSION, SPA_DSN} from 'sentry/constants';
import type {Config} from 'sentry/types/system';
Expand Down Expand Up @@ -234,7 +234,6 @@ export function initializeSdk(config: Config) {
// Track timeOrigin Selection by the SDK to see if it improves transaction durations
Sentry.addEventProcessor((event: Sentry.Event, _hint?: Sentry.EventHint) => {
event.tags = event.tags || {};
event.tags['timeOrigin.mode'] = _browserPerformanceTimeOriginMode;
return event;
});

Expand Down
6 changes: 1 addition & 5 deletions static/app/utils/performanceForSentry/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import type {ProfilerOnRenderCallback, ReactNode} from 'react';
import {Fragment, Profiler, useEffect, useRef} from 'react';
import type {MeasurementUnit, Span, TransactionEvent} from '@sentry/core';
import * as Sentry from '@sentry/react';
import {
_browserPerformanceTimeOriginMode,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh the underscore makes the linter ignore it even though it was unused

browserPerformanceTimeOrigin,
timestampInSeconds,
} from '@sentry/utils';
import {browserPerformanceTimeOrigin, timestampInSeconds} from '@sentry/utils';

import {useLocation} from 'sentry/utils/useLocation';
import usePrevious from 'sentry/utils/usePrevious';
Expand Down
Loading