Skip to content

Commit 6fa2ccb

Browse files
committed
feat(node): add context info for missing intrumentation
1 parent dd4a7d7 commit 6fa2ccb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/node/src/utils/ensureIsWrapped.ts

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

@@ -24,5 +24,10 @@ export function ensureIsWrapped(
2424
);
2525
}
2626
});
27+
28+
getCurrentScope().setContext('Instrumentation', {
29+
isMissing: true,
30+
framework: name,
31+
});
2732
}
2833
}

0 commit comments

Comments
 (0)