(options: HonoNodeOptions)
| 11 | * This function should be called in an `instrument.ts` file loaded via `--import` to set up Sentry globally for the application. |
| 12 | */ |
| 13 | export function init(options: HonoNodeOptions): Client | undefined { |
| 14 | const existingClient = getClient(); |
| 15 | if (existingClient) { |
| 16 | existingClient.getOptions().debug && debug.log('Sentry is already initialized, skipping re-initialization.'); |
| 17 | return existingClient; |
| 18 | } |
| 19 | |
| 20 | applySdkMetadata(options, 'hono', ['hono', 'node']); |
| 21 | |
| 22 | const filteredOptions: HonoNodeOptions = { |
| 23 | ...options, |
| 24 | ignoreSpans: [...(options.ignoreSpans || []), ...LOW_QUALITY_TRANSACTION_PATTERNS], |
| 25 | integrations: buildFilteredIntegrations(options.integrations, false), |
| 26 | }; |
| 27 | |
| 28 | return initNode(filteredOptions); |
| 29 | } |
nothing calls this directly
no test coverage detected