8000
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 10b494b commit 08ca723Copy full SHA for 08ca723
packages/react/src/sdk.ts
@@ -1,6 +1,6 @@
1
import type { BrowserOptions } from '@sentry/browser';
2
import {
3
- getDefaultIntegrations,
+ init as browserInit,
4
initWithDefaultIntegrations as browserInitWithDefaultIntegrations,
5
setContext,
6
} from '@sentry/browser';
@@ -13,7 +13,13 @@ import { version } from 'react';
13
* Inits the React SDK
14
*/
15
export function init(options: BrowserOptions): Client | undefined {
16
- return initWithDefaultIntegrations(options, getDefaultIntegrations);
+ const opts = {
17
+ ...options,
18
+ };
19
+
20
+ applySdkMetadata(opts, 'react');
21
+ setContext('react', { version });
22
+ return browserInit(opts);
23
}
24
25
/**
0 commit comments