Skip to content

Commit c842fb3

Browse files
committed
Minor changes
1 parent d402354 commit c842fb3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/node/src/integrations/localvariables.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { getCurrentHub } from '@sentry/core';
2-
import { Event, EventProcessor, Exception, Integration, StackFrame, StackParser } from '@sentry/types';
1+
import { Event, EventProcessor, Exception, Hub, Integration, StackFrame, StackParser } from '@sentry/types';
32
import { Debugger, InspectorNotification, Runtime, Session } from 'inspector';
43
import { LRUMap } from 'lru_map';
54

@@ -81,7 +80,7 @@ export class LocalVariables implements Integration {
8180
/**
8281
* @inheritDoc
8382
*/
84-
public setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void): void {
83+
public setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {
8584
const options = getCurrentHub().getClient()?.getOptions();
8685

8786
if (options?._experiments?.includeStackLocals) {

packages/node/src/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ export const defaultIntegrations = [
4646
new OnUnhandledRejection(),
4747
// Event Info
4848
new ContextLines(),
49+
new LocalVariables(),
4950
new Context(),
5051
new Modules(),
5152
new RequestData(),
5253
// Misc
5354
new LinkedErrors(),
54-
new LocalVariables(),
5555
];
5656

5757
/**

0 commit comments

Comments
 (0)