Skip to content

Commit 49b5cbd

Browse files
committed
feat: rename package attribute and add isCjs to context
1 parent 6fa2ccb commit 49b5cbd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/node/src/utils/ensureIsWrapped.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { isWrapped } from '@opentelemetry/core';
2-
import { getCurrentScope, hasTracingEnabled, isEnabled } from '@sentry/core';
2+
import { getGlobalScope, hasTracingEnabled, isEnabled } from '@sentry/core';
33
import { consoleSandbox } from '@sentry/utils';
44
import { isCjs } from './commonjs';
55

@@ -25,9 +25,10 @@ export function ensureIsWrapped(
2525
}
2626
});
2727

28-
getCurrentScope().setContext('Instrumentation', {
28+
getGlobalScope().setContext('Instrumentation', {
2929
isMissing: true,
30-
framework: name,
30+
package: name,
31+
isCjs: isCjs(),
3132
});
3233
}
3334
}

0 commit comments

Comments
 (0)