|
1 | 1 | import { getCurrentHub, getIntegrationsToSetup, initAndBind, Integrations as CoreIntegrations } from '@sentry/core'; |
2 | 2 | import { getMainCarrier, setHubOnCarrier } from '@sentry/hub'; |
3 | 3 | import { SessionStatus } from '@sentry/types'; |
4 | | -import { getGlobalObject, logger, stackParserFromOptions } from '@sentry/utils'; |
| 4 | +import { getGlobalObject, logger, stackParserFromStackParserOptions } from '@sentry/utils'; |
5 | 5 | import * as domain from 'domain'; |
6 | 6 |
|
7 | 7 | import { NodeClient } from './client'; |
8 | 8 | import { IS_DEBUG_BUILD } from './flags'; |
9 | 9 | import { Console, ContextLines, Http, LinkedErrors, OnUncaughtException, OnUnhandledRejection } from './integrations'; |
10 | | -import { nodeStackParser } from './stack-parser'; |
| 10 | +import { defaultStackParser } from './stack-parser'; |
11 | 11 | import { makeNodeTransport } from './transports'; |
12 | 12 | import { NodeClientOptions, NodeOptions } from './types'; |
13 | 13 |
|
@@ -130,7 +130,7 @@ export function init(options: NodeOptions = {}): void { |
130 | 130 | // TODO(v7): Refactor this to reduce the logic above |
131 | 131 | const clientOptions: NodeClientOptions = { |
132 | 132 | ...options, |
133 | | - stackParser: stackParserFromOptions(options.stackParser || [nodeStackParser]), |
| 133 | + stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser), |
134 | 134 | integrations: getIntegrationsToSetup(options), |
135 | 135 | transport: options.transport || makeNodeTransport, |
136 | 136 | }; |
|
0 commit comments