File tree Expand file tree Collapse file tree
instrumentation-sentry-node Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @hyperdx/node-opentelemetry ' : patch
3+ ---
4+
5+ fix: sdk double patching issue
Original file line number Diff line number Diff line change 1+ ---
2+ ' @hyperdx/instrumentation-sentry-node ' : patch
3+ ---
4+
5+ fix: sentry node instrumentation version support
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ npm install --save @hyperdx/instrumentation-sentry-node
1515
1616### Supported Versions
1717
18- - ` >=7 <9 `
18+ - ` >=7.30.0 <9 `
1919
2020## Usage
2121
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export class SentryNodeInstrumentation extends InstrumentationBase {
2727 return [
2828 new InstrumentationNodeModuleDefinition (
2929 '@sentry/node' ,
30- [ '^7.0.0' , '^8.0.0 '] ,
30+ [ '>=7.30.0 <9 ' ] ,
3131 ( moduleExports : typeof Sentry ) => {
3232 diag . debug (
3333 `Detected Sentry installed with SDK version: ${ moduleExports . SDK_VERSION } ` ,
Original file line number Diff line number Diff line change 11export * from './gcp' ;
22export * from './logger' ;
33export * from './otel' ;
4- export { recordException } from '@hyperdx/instrumentation-exception' ;
4+ export {
5+ recordException ,
6+ setupExpressErrorHandler ,
7+ setupKoaErrorHandler ,
8+ } from '@hyperdx/instrumentation-exception' ;
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { RuntimeNodeInstrumentation } from '@opentelemetry/instrumentation-runti
1111import { SentryNodeInstrumentation } from '@hyperdx/instrumentation-sentry-node' ;
1212import {
1313 InstrumentationBase ,
14- Instrumentation ,
1514 InstrumentationModuleDefinition ,
1615} from '@opentelemetry/instrumentation' ;
1716import { NodeSDK } from '@opentelemetry/sdk-node' ;
@@ -350,7 +349,7 @@ export const initSDK = (config: SDKConfig) => {
350349 } ) ,
351350 ] ) ,
352351 ] ,
353- instrumentations : allInstrumentations ,
352+ instrumentations : config . programmaticImports ? [ ] : allInstrumentations ,
354353 contextManager : contextManager ,
355354 } ) ;
356355
You can’t perform that action at this time.
0 commit comments