(options: BrowserOptions)
| 13 | * @param options Configuration options for the SDK. |
| 14 | */ |
| 15 | export function init(options: BrowserOptions): Client | undefined { |
| 16 | const opts = { |
| 17 | defaultIntegrations: getDefaultIntegrations(options), |
| 18 | ...options, |
| 19 | }; |
| 20 | |
| 21 | applySdkMetadata(opts, 'astro', ['astro', 'browser']); |
| 22 | |
| 23 | return initBrowserSdk(opts); |
| 24 | } |
| 25 | |
| 26 | function getDefaultIntegrations(options: BrowserOptions): Integration[] { |
| 27 | // This evaluates to true unless __SENTRY_TRACING__ is text-replaced with "false", |
no test coverage detected