|
1 |
| -import { convertIntegrationFnToClass, defineIntegration, getCurrentScope } from '@sentry/core'; |
2 |
| -import type { Client, EventEnvelope, Integration, IntegrationClass, IntegrationFn, Transaction } from '@sentry/types'; |
| 1 | +import { defineIntegration, getCurrentScope } from '@sentry/core'; |
| 2 | +import type { EventEnvelope, IntegrationFn, Transaction } from '@sentry/types'; |
3 | 3 | import type { Profile } from '@sentry/types/src/profiling';
|
4 | 4 | import { logger } from '@sentry/utils';
|
5 | 5 |
|
6 | 6 | import { DEBUG_BUILD } from '../debug-build';
|
7 |
| -import { startProfileForTransaction } from './hubextensions'; |
| 7 | +import { startProfileForTransaction } from './startProfileForTransaction'; |
8 | 8 | import type { ProfiledEvent } from './utils';
|
9 | 9 | import {
|
10 | 10 | addProfilesToEnvelope,
|
@@ -97,22 +97,3 @@ const _browserProfilingIntegration = (() => {
|
97 | 97 | }) satisfies IntegrationFn;
|
98 | 98 |
|
99 | 99 | export const browserProfilingIntegration = defineIntegration(_browserProfilingIntegration);
|
100 |
| - |
101 |
| -/** |
102 |
| - * Browser profiling integration. Stores any event that has contexts["profile"]["profile_id"] |
103 |
| - * This exists because we do not want to await async profiler.stop calls as transaction.finish is called |
104 |
| - * in a synchronous context. Instead, we handle sending the profile async from the promise callback and |
105 |
| - * rely on being able to pull the event from the cache when we need to construct the envelope. This makes the |
106 |
| - * integration less reliable as we might be dropping profiles when the cache is full. |
107 |
| - * |
108 |
| - * @experimental |
109 |
| - * @deprecated Use `browserProfilingIntegration()` instead. |
110 |
| - */ |
111 |
| -// eslint-disable-next-line deprecation/deprecation |
112 |
| -export const BrowserProfilingIntegration = convertIntegrationFnToClass( |
113 |
| - INTEGRATION_NAME, |
114 |
| - browserProfilingIntegration, |
115 |
| -) as IntegrationClass<Integration & { setup: (client: Client) => void }>; |
116 |
| - |
117 |
| -// eslint-disable-next-line deprecation/deprecation |
118 |
| -export type BrowserProfilingIntegration = typeof BrowserProfilingIntegration; |
0 commit comments