@sentry/node 8.26.0 → 8.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/build/cjs/index.js +11 -0
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/anr/index.js +1 -1
  4. package/build/cjs/integrations/anr/index.js.map +1 -1
  5. package/build/cjs/integrations/http.js +32 -6
  6. package/build/cjs/integrations/http.js.map +1 -1
  7. package/build/cjs/integrations/local-variables/common.js +6 -24
  8. package/build/cjs/integrations/local-variables/common.js.map +1 -1
  9. package/build/cjs/integrations/local-variables/local-variables-async.js +24 -35
  10. package/build/cjs/integrations/local-variables/local-variables-async.js.map +1 -1
  11. package/build/cjs/integrations/local-variables/local-variables-sync.js +26 -2
  12. package/build/cjs/integrations/local-variables/local-variables-sync.js.map +1 -1
  13. package/build/cjs/integrations/node-fetch.js +27 -57
  14. package/build/cjs/integrations/node-fetch.js.map +1 -1
  15. package/build/cjs/integrations/tracing/amqplib.js +34 -0
  16. package/build/cjs/integrations/tracing/amqplib.js.map +1 -0
  17. package/build/cjs/integrations/tracing/dataloader.js +61 -0
  18. package/build/cjs/integrations/tracing/dataloader.js.map +1 -0
  19. package/build/cjs/integrations/tracing/genericPool.js +45 -0
  20. package/build/cjs/integrations/tracing/genericPool.js.map +1 -0
  21. package/build/cjs/integrations/tracing/graphql.js +14 -7
  22. package/build/cjs/integrations/tracing/graphql.js.map +1 -1
  23. package/build/cjs/integrations/tracing/index.js +12 -0
  24. package/build/cjs/integrations/tracing/index.js.map +1 -1
  25. package/build/cjs/integrations/tracing/kafka.js +41 -0
  26. package/build/cjs/integrations/tracing/kafka.js.map +1 -0
  27. package/build/cjs/integrations/tracing/koa.js +1 -1
  28. package/build/cjs/integrations/tracing/koa.js.map +1 -1
  29. package/build/cjs/integrations/tracing/lrumemoizer.js +29 -0
  30. package/build/cjs/integrations/tracing/lrumemoizer.js.map +1 -0
  31. package/build/cjs/integrations/tracing/nest/helpers.js +47 -2
  32. package/build/cjs/integrations/tracing/nest/helpers.js.map +1 -1
  33. package/build/cjs/integrations/tracing/nest/sentry-nest-instrumentation.js +111 -37
  34. package/build/cjs/integrations/tracing/nest/sentry-nest-instrumentation.js.map +1 -1
  35. package/build/cjs/otel/instrument.js +2 -0
  36. package/build/cjs/otel/instrument.js.map +1 -1
  37. package/build/cjs/preload.js +4 -3
  38. package/build/cjs/preload.js.map +1 -1
  39. package/build/cjs/sdk/index.js +11 -2
  40. package/build/cjs/sdk/index.js.map +1 -1
  41. package/build/cjs/sdk/initOtel.js +20 -3
  42. package/build/cjs/sdk/initOtel.js.map +1 -1
  43. package/build/cjs/transports/http.js +55 -53
  44. package/build/cjs/transports/http.js.map +1 -1
  45. package/build/cjs/utils/ensureIsWrapped.js +15 -5
  46. package/build/cjs/utils/ensureIsWrapped.js.map +1 -1
  47. package/build/cjs/utils/envToBool.js +32 -0
  48. package/build/cjs/utils/envToBool.js.map +1 -0
  49. package/build/esm/index.js +6 -1
  50. package/build/esm/index.js.map +1 -1
  51. package/build/esm/integrations/anr/index.js +1 -1
  52. package/build/esm/integrations/anr/index.js.map +1 -1
  53. package/build/esm/integrations/anr/worker-script.js +2 -2
  54. package/build/esm/integrations/http.js +34 -8
  55. package/build/esm/integrations/http.js.map +1 -1
  56. package/build/esm/integrations/local-variables/common.js +6 -23
  57. package/build/esm/integrations/local-variables/common.js.map +1 -1
  58. package/build/esm/integrations/local-variables/local-variables-async.js +26 -37
  59. package/build/esm/integrations/local-variables/local-variables-async.js.map +1 -1
  60. package/build/esm/integrations/local-variables/local-variables-sync.js +24 -2
  61. package/build/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
  62. package/build/esm/integrations/local-variables/worker-script.js +2 -2
  63. package/build/esm/integrations/node-fetch.js +30 -60
  64. package/build/esm/integrations/node-fetch.js.map +1 -1
  65. package/build/esm/integrations/tracing/amqplib.js +31 -0
  66. package/build/esm/integrations/tracing/amqplib.js.map +1 -0
  67. package/build/esm/integrations/tracing/dataloader.js +55 -0
  68. package/build/esm/integrations/tracing/dataloader.js.map +1 -0
  69. package/build/esm/integrations/tracing/genericPool.js +42 -0
  70. package/build/esm/integrations/tracing/genericPool.js.map +1 -0
  71. package/build/esm/integrations/tracing/graphql.js +14 -7
  72. package/build/esm/integrations/tracing/graphql.js.map +1 -1
  73. package/build/esm/integrations/tracing/index.js +12 -0
  74. package/build/esm/integrations/tracing/index.js.map +1 -1
  75. package/build/esm/integrations/tracing/kafka.js +38 -0
  76. package/build/esm/integrations/tracing/kafka.js.map +1 -0
  77. package/build/esm/integrations/tracing/koa.js +2 -2
  78. package/build/esm/integrations/tracing/koa.js.map +1 -1
  79. package/build/esm/integrations/tracing/lrumemoizer.js +26 -0
  80. package/build/esm/integrations/tracing/lrumemoizer.js.map +1 -0
  81. package/build/esm/integrations/tracing/nest/helpers.js +44 -4
  82. package/build/esm/integrations/tracing/nest/helpers.js.map +1 -1
  83. package/build/esm/integrations/tracing/nest/sentry-nest-instrumentation.js +110 -40
  84. package/build/esm/integrations/tracing/nest/sentry-nest-instrumentation.js.map +1 -1
  85. package/build/esm/otel/instrument.js +2 -1
  86. package/build/esm/otel/instrument.js.map +1 -1
  87. package/build/esm/preload.js +4 -3
  88. package/build/esm/preload.js.map +1 -1
  89. package/build/esm/sdk/index.js +11 -2
  90. package/build/esm/sdk/index.js.map +1 -1
  91. package/build/esm/sdk/initOtel.js +18 -4
  92. package/build/esm/sdk/initOtel.js.map +1 -1
  93. package/build/esm/transports/http.js +55 -53
  94. package/build/esm/transports/http.js.map +1 -1
  95. package/build/esm/utils/ensureIsWrapped.js +10 -3
  96. package/build/esm/utils/ensureIsWrapped.js.map +1 -1
  97. package/build/esm/utils/envToBool.js +28 -0
  98. package/build/esm/utils/envToBool.js.map +1 -0
  99. package/build/types/index.d.ts +6 -1
  100. package/build/types/index.d.ts.map +1 -1
  101. package/build/types/integrations/http.d.ts.map +1 -1
  102. package/build/types/integrations/local-variables/common.d.ts +5 -8
  103. package/build/types/integrations/local-variables/common.d.ts.map +1 -1
  104. package/build/types/integrations/local-variables/local-variables-async.d.ts.map +1 -1
  105. package/build/types/integrations/local-variables/local-variables-sync.d.ts +8 -0
  106. package/build/types/integrations/local-variables/local-variables-sync.d.ts.map +1 -1
  107. package/build/types/integrations/node-fetch.d.ts.map +1 -1
  108. package/build/types/integrations/tracing/amqplib.d.ts +5 -0
  109. package/build/types/integrations/tracing/amqplib.d.ts.map +1 -0
  110. package/build/types/integrations/tracing/dataloader.d.ts +10 -0
  111. package/build/types/integrations/tracing/dataloader.d.ts.map +1 -0
  112. package/build/types/integrations/tracing/genericPool.d.ts +10 -0
  113. package/build/types/integrations/tracing/genericPool.d.ts.map +1 -0
  114. package/build/types/integrations/tracing/graphql.d.ts.map +1 -1
  115. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  116. package/build/types/integrations/tracing/kafka.d.ts +10 -0
  117. package/build/types/integrations/tracing/kafka.d.ts.map +1 -0
  118. package/build/types/integrations/tracing/lrumemoizer.d.ts +10 -0
  119. package/build/types/integrations/tracing/lrumemoizer.d.ts.map +1 -0
  120. package/build/types/integrations/tracing/mysql.d.ts +5 -0
  121. package/build/types/integrations/tracing/mysql.d.ts.map +1 -1
  122. package/build/types/integrations/tracing/nest/helpers.d.ts +11 -2
  123. package/build/types/integrations/tracing/nest/helpers.d.ts.map +1 -1
  124. package/build/types/integrations/tracing/nest/sentry-nest-instrumentation.d.ts +3 -1
  125. package/build/types/integrations/tracing/nest/sentry-nest-instrumentation.d.ts.map +1 -1
  126. package/build/types/integrations/tracing/nest/types.d.ts +10 -3
  127. package/build/types/integrations/tracing/nest/types.d.ts.map +1 -1
  128. package/build/types/otel/instrument.d.ts +2 -0
  129. package/build/types/otel/instrument.d.ts.map +1 -1
  130. package/build/types/sdk/index.d.ts.map +1 -1
  131. package/build/types/sdk/initOtel.d.ts.map +1 -1
  132. package/build/types/transports/http.d.ts.map +1 -1
  133. package/build/types/types.d.ts +17 -1
  134. package/build/types/types.d.ts.map +1 -1
  135. package/build/types/utils/ensureIsWrapped.d.ts +1 -1
  136. package/build/types/utils/ensureIsWrapped.d.ts.map +1 -1
  137. package/build/types/utils/envToBool.d.ts +13 -0
  138. package/build/types/utils/envToBool.d.ts.map +1 -0
  139. package/build/types-ts3.8/index.d.ts +6 -1
  140. package/build/types-ts3.8/integrations/local-variables/common.d.ts +5 -8
  141. package/build/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +8 -0
  142. package/build/types-ts3.8/integrations/tracing/amqplib.d.ts +5 -0
  143. package/build/types-ts3.8/integrations/tracing/dataloader.d.ts +10 -0
  144. package/build/types-ts3.8/integrations/tracing/genericPool.d.ts +10 -0
  145. package/build/types-ts3.8/integrations/tracing/kafka.d.ts +10 -0
  146. package/build/types-ts3.8/integrations/tracing/lrumemoizer.d.ts +10 -0
  147. package/build/types-ts3.8/integrations/tracing/mysql.d.ts +5 -0
  148. package/build/types-ts3.8/integrations/tracing/nest/helpers.d.ts +11 -2
  149. package/build/types-ts3.8/integrations/tracing/nest/sentry-nest-instrumentation.d.ts +3 -1
  150. package/build/types-ts3.8/integrations/tracing/nest/types.d.ts +10 -3
  151. package/build/types-ts3.8/otel/instrument.d.ts +2 -0
  152. package/build/types-ts3.8/types.d.ts +17 -1
  153. package/build/types-ts3.8/utils/ensureIsWrapped.d.ts +1 -1
  154. package/build/types-ts3.8/utils/envToBool.d.ts +13 -0
  155. package/package.json +32 -29
@@ -0,0 +1,10 @@
1
+ export declare const instrumentLruMemoizer: ((options?: unknown) => void) & {
2
+ id: string;
3
+ };
4
+ /**
5
+ * LruMemoizer integration
6
+ *
7
+ * Propagate traces through LruMemoizer.
8
+ */
9
+ export declare const lruMemoizerIntegration: () => import("@sentry/types").Integration;
10
+ //# sourceMappingURL=lrumemoizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lrumemoizer.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/lrumemoizer.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,qBAAqB;;CAAmF,CAAC;AAWtH;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,2CAA6C,CAAC"}
@@ -1,4 +1,9 @@
1
1
  export declare const instrumentMysql: ((options?: unknown) => void) & {
2
+ /**
3
+ * MySQL integration
4
+ *
5
+ * Capture tracing data for mysql.
6
+ */
2
7
  id: string;
3
8
  };
4
9
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe;;CAA+E,CAAC;AAW5G;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,2CAAuC,CAAC"}
1
+ {"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/mysql.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe;IAW5B;;;;OAIG;;CAfwG,CAAC;AAW5G;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,2CAAuC,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { CatchTarget, InjectableTarget } from './types';
1
+ import type { Span } from '@sentry/types';
2
+ import type { CatchTarget, InjectableTarget, NextFunction, Observable } from './types';
2
3
  /**
3
4
  * Helper checking if a concrete target class is already patched.
4
5
  *
@@ -9,11 +10,19 @@ export declare function isPatched(target: InjectableTarget | CatchTarget): boole
9
10
  /**
10
11
  * Returns span options for nest middleware spans.
11
12
  */
12
- export declare function getMiddlewareSpanOptions(target: InjectableTarget | CatchTarget): {
13
+ export declare function getMiddlewareSpanOptions(target: InjectableTarget | CatchTarget, name?: string | undefined): {
13
14
  name: string;
14
15
  attributes: {
15
16
  "sentry.op": string;
16
17
  "sentry.origin": string;
17
18
  };
18
19
  };
20
+ /**
21
+ * Adds instrumentation to a js observable and attaches the span to an active parent span.
22
+ */
23
+ export declare function instrumentObservable(observable: Observable<unknown>, activeSpan: Span | undefined): void;
24
+ /**
25
+ * Proxies the next() call in a nestjs middleware to end the span when it is called.
26
+ */
27
+ export declare function getNextProxy(next: NextFunction, span: Span, prevSpan: undefined | Span): NextFunction;
19
28
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/nest/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAI7D;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,gBAAgB,GAAG,WAAW,GAAG,OAAO,CAOzE;AAED;;GAEG;AAEH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,gBAAgB,GAAG,WAAW;;;;;;EAQ9E"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/nest/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,EAAgB,MAAM,SAAS,CAAC;AAIrG;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,gBAAgB,GAAG,WAAW,GAAG,OAAO,CAOzE;AAED;;GAEG;AAEH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,gBAAgB,GAAG,WAAW,EAAE,IAAI,GAAE,MAAM,GAAG,SAAqB;;;;;;EAUpH;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAaxG;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,GAAG,IAAI,GAAG,YAAY,CAcrG"}
@@ -3,7 +3,9 @@ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opent
3
3
  /**
4
4
  * Custom instrumentation for nestjs.
5
5
  *
6
- * This hooks into the @Injectable decorator, which is applied on class middleware, interceptors and guards.
6
+ * This hooks into
7
+ * 1. @Injectable decorator, which is applied on class middleware, interceptors and guards.
8
+ * 2. @Catch decorator, which is applied on exception filters.
7
9
  */
8
10
  export declare class SentryNestInstrumentation extends InstrumentationBase {
9
11
  static readonly COMPONENT = "@nestjs/common";
@@ -1 +1 @@
1
- {"version":3,"file":"sentry-nest-instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/nest/sentry-nest-instrumentation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EACL,mBAAmB,EACnB,mCAAmC,EAEpC,MAAM,gCAAgC,CAAC;AASxC;;;;GAIG;AACH,qBAAa,yBAA0B,SAAQ,mBAAmB;IAChE,gBAAuB,SAAS,oBAAoB;IACpD,gBAAuB,iBAAiB;;MAEtC;gBAEiB,MAAM,GAAE,qBAA0B;IAIrD;;OAEG;IACI,IAAI,IAAI,mCAAmC;IAUlD;;OAEG;IACH,OAAO,CAAC,iCAAiC;IAiBzC;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAiBpC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAmH7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAyBzB"}
1
+ {"version":3,"file":"sentry-nest-instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/nest/sentry-nest-instrumentation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EACL,mBAAmB,EACnB,mCAAmC,EAEpC,MAAM,gCAAgC,CAAC;AASxC;;;;;;GAMG;AACH,qBAAa,yBAA0B,SAAQ,mBAAmB;IAChE,gBAAuB,SAAS,oBAAoB;IACpD,gBAAuB,iBAAiB;;MAEtC;gBAEiB,MAAM,GAAE,qBAA0B;IAIrD;;OAEG;IACI,IAAI,IAAI,mCAAmC;IAUlD;;OAEG;IACH,OAAO,CAAC,iCAAiC;IAiBzC;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAiBpC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IA+K7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAgCzB"}
@@ -1,4 +1,4 @@
1
- interface MinimalNestJsExecutionContext {
1
+ export interface MinimalNestJsExecutionContext {
2
2
  getType: () => string;
3
3
  switchToHttp: () => {
4
4
  getRequest: () => {
@@ -8,6 +8,7 @@ interface MinimalNestJsExecutionContext {
8
8
  method?: string;
9
9
  };
10
10
  };
11
+ _sentryInterceptorInstrumented?: boolean;
11
12
  }
12
13
  export interface NestJsErrorFilter {
13
14
  catch(exception: any, host: any): void;
@@ -20,11 +21,14 @@ export interface MinimalNestJsApp {
20
21
  }) => any;
21
22
  }) => void;
22
23
  }
24
+ export interface Subscription {
25
+ add(...args: any[]): void;
26
+ }
23
27
  /**
24
28
  * A minimal interface for an Observable.
25
29
  */
26
30
  export interface Observable<T> {
27
- subscribe(observer: (value: T) => void): void;
31
+ subscribe(next?: (value: T) => void, error?: (err: any) => void, complete?: () => void): Subscription;
28
32
  }
29
33
  /**
30
34
  * A NestJS call handler. Used in interceptors to start the route execution.
@@ -57,5 +61,8 @@ export interface CatchTarget {
57
61
  catch?: (...args: any[]) => any;
58
62
  };
59
63
  }
60
- export {};
64
+ /**
65
+ * Represents an express NextFunction.
66
+ */
67
+ export type NextFunction = (err?: any) => void;
61
68
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/nest/types.ts"],"names":[],"mappings":"AAEA,UAAU,6BAA6B;IACrC,OAAO,EAAE,MAAM,MAAM,CAAC;IAEtB,YAAY,EAAE,MAAM;QAIlB,UAAU,EAAE,MAAM;YAChB,KAAK,CAAC,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I,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,EAAE;QACT,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;KACjC,CAAC;CACH;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import type { Instrumentation } from '@opentelemetry/instrumentation';
2
+ /** Exported only for tests. */
3
+ export declare const INSTRUMENTED: Record<string, Instrumentation>;
2
4
  /**
3
5
  * Instrument an OpenTelemetry instrumentation once.
4
6
  * This will skip running instrumentation again if it was already instrumented.
@@ -1 +1 @@
1
- {"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../../../src/otel/instrument.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAKtE;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAG,OAAO,EACtD,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,eAAe,GAC9C,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAmBhD"}
1
+ {"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../../../src/otel/instrument.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGtE,+BAA+B;AAC/B,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAM,CAAC;AAEhE;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAG,OAAO,EACtD,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,eAAe,GAC9C,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAmBhD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAsB1D,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAG/D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAOtC;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAoBxE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAStE;AAYD;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,GAAG,SAAS,CAElF;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,CAEhG;AAqED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CA0BjD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAsB1D,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAI/D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAOtC;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAoBxE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAStE;AAYD;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,GAAG,SAAS,CAElF;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,CAEhG;AAqED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CA0BjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAYpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAO1D;AAED,iCAAiC;AACjC,wBAAgB,wBAAwB,CAAC,aAAa,CAAC,EAAE,oBAAoB,GAAG,IAAI,CA0BnF;AAED,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,sBAAsB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,kBAAuB,GAAG,IAAI,CAoB3E;AAYD,+BAA+B;AAC/B,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,mBAAmB,CAwBjE"}
1
+ {"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAapE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAO1D;AAsBD,iCAAiC;AACjC,wBAAgB,wBAAwB,CAAC,aAAa,CAAC,EAAE,oBAAoB,GAAG,IAAI,CA0BnF;AAED,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,sBAAsB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,kBAAuB,GAAG,IAAI,CAoB3E;AAYD,+BAA+B;AAC/B,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,mBAAmB,CAyBjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/transports/http.ts"],"names":[],"mappings":";AAKA,OAAO,KAAK,EACV,oBAAoB,EACpB,SAAS,EAIV,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,6EAA6E;IAC7E,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAkBD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAsC1E"}
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/transports/http.ts"],"names":[],"mappings":";AAKA,OAAO,KAAK,EACV,oBAAoB,EACpB,SAAS,EAIV,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,6EAA6E;IAC7E,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAkBD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAmC1E"}
@@ -4,7 +4,18 @@ import type { ClientOptions, Options, SamplingContext, Scope, Span, TracePropaga
4
4
  import type { NodeTransportOptions } from './transports';
5
5
  export interface EsmLoaderHookOptions {
6
6
  include?: Array<string | RegExp>;
7
- exclude?: Array<string | RegExp>;
7
+ exclude?: Array<string | RegExp> /**
8
+ * When set to `true`, `import-in-the-middle` will only wrap ESM modules that are specifically instrumented by
9
+ * OpenTelemetry plugins. This is useful to avoid issues where `import-in-the-middle` is not compatible with some of
10
+ * your dependencies.
11
+ *
12
+ * **Note**: This feature will only work if you `Sentry.init()` the SDK before the instrumented modules are loaded.
13
+ * This can be achieved via the Node `--import` CLI flag or by loading your app via async `import()` after calling
14
+ * `Sentry.init()`.
15
+ *
16
+ * Defaults to `false`.
17
+ */;
18
+ onlyIncludeInstrumentedModules?: boolean;
8
19
  }
9
20
  export interface BaseNodeOptions {
10
21
  /**
@@ -101,6 +112,11 @@ export interface BaseNodeOptions {
101
112
  * Configures in which interval client reports will be flushed. Defaults to `60_000` (milliseconds).
102
113
  */
103
114
  clientReportFlushInterval?: number;
115
+ /**
116
+ * By default, the SDK will try to identify problems with your instrumentation setup and warn you about it.
117
+ * If you want to disable these warnings, set this to `true`.
118
+ */
119
+ disableInstrumentationWarnings?: boolean;
104
120
  /** Callback that is executed when a fatal global error occurs. */
105
121
  onFatalError?(this: void, error: Error): void;
106
122
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAEnH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;;;;;OAeG;IACH,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAElD;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EAAE,CAAC,eAAe,EAAE,eAAe,KAAK,MAAM,GAAG,OAAO,CAAC;IAEzE,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAE7B;;;;;;;OAOG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;;;;;OAQG;IACH,mBAAm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apped by opentelemetry.
3
3
  */
4
- export declare function ensureIsWrapped(maybeWrappedModule: unknown, name: 'express' | 'connect' | 'fastify' | 'hapi' | 'koa'): void;
4
+ export declare function ensureIsWrapped(maybeWrappedFunction: unknown, name: 'express' | 'connect' | 'fastify' | 'hapi' | 'koa'): void;
5
5
  //# sourceMappingURL=ensureIsWrapped.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ensureIsWrapped.d.ts","sourceRoot":"","sources":["../../../src/utils/ensureIsWrapped.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,eAAe,CAC7B,kBAAkB,EAAE,OAAO,EAC3B,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GACvD,IAAI,CAkBN"}
1
+ {"version":3,"file":"ensureIsWrapped.d.ts","sourceRoot":"","sources":["../../../src/utils/ensureIsWrapped.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,wBAAgB,eAAe,CAC7B,oBAAoB,EAAE,OAAO,EAC7B,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GACvD,IAAI,CAwBN"}
@@ -0,0 +1,13 @@
1
+ export declare const FALSY_ENV_VALUES: Set<string>;
2
+ export declare const TRUTHY_ENV_VALUES: Set<string>;
3
+ export type StrictBoolCast = {
4
+ strict: true;
5
+ };
6
+ export type LooseBoolCast = {
7
+ strict?: false;
8
+ };
9
+ export type BoolCastOptions = StrictBoolCast | LooseBoolCast;
10
+ export declare function envToBool(value: unknown, options?: LooseBoolCast): boolean;
11
+ export declare function envToBool(value: unknown, options: StrictBoolCast): boolean | null;
12
+ export declare function envToBool(value: unknown, options?: BoolCastOptions): boolean | null;
13
+ //# sourceMappingURL=envToBool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"envToBool.d.ts","sourceRoot":"","sources":["../../../src/utils/envToBool.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,aAAiD,CAAC;AAC/E,eAAO,MAAM,iBAAiB,aAAgD,CAAC;AAE/E,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,IAAI,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG,aAAa,CAAC;AAE7D,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC;AAC5E,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,GAAG,IAAI,CAAC;AACnF,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,GAAG,IAAI,CAAC"}
@@ -12,6 +12,8 @@ export { anrIntegration } from './integrations/anr';
12
12
  export { expressIntegration, expressErrorHandler, setupExpressErrorHandler } from './integrations/tracing/express';
13
13
  export { fastifyIntegration, setupFastifyErrorHandler } from './integrations/tracing/fastify';
14
14
  export { graphqlIntegration } from './integrations/tracing/graphql';
15
+ export { kafkaIntegration } from './integrations/tracing/kafka';
16
+ export { lruMemoizerIntegration } from './integrations/tracing/lrumemoizer';
15
17
  export { mongoIntegration } from './integrations/tracing/mongo';
16
18
  export { mongooseIntegration } from './integrations/tracing/mongoose';
17
19
  export { mysqlIntegration } from './integrations/tracing/mysql';
@@ -24,6 +26,9 @@ export { hapiIntegration, setupHapiErrorHandler } from './integrations/tracing/h
24
26
  export { koaIntegration, setupKoaErrorHandler } from './integrations/tracing/koa';
25
27
  export { connectIntegration, setupConnectErrorHandler } from './integrations/tracing/connect';
26
28
  export { spotlightIntegration } from './integrations/spotlight';
29
+ export { genericPoolIntegration } from './integrations/tracing/genericPool';
30
+ export { dataloaderIntegration } from './integrations/tracing/dataloader';
31
+ export { amqplibIntegration } from './integrations/tracing/amqplib';
27
32
  export { SentryContextManager } from './otel/contextManager';
28
33
  export { generateInstrumentOnce } from './otel/instrument';
29
34
  export { init, getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations, validateOpenTelemetrySetup, } from './sdk';
@@ -37,6 +42,6 @@ export { cron } from './cron';
37
42
  export { NodeOptions } from './types';
38
43
  export { addRequestDataToEvent, DEFAULT_USER_INCLUDES, extractRequestData } from '@sentry/utils';
39
44
  export { addOpenTelemetryInstrumentation, continueTrace, setOpenTelemetryContextAsyncContextStrategy as setNodeAsyncContextStrategy, } from '@sentry/opentelemetry';
40
- export { addBreadcrumb, isInitialized, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setUser, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setCurrentClient, Scope, setMeasurement, getSpanDescendants, parameterize, getClient, getCurrentHub, getCurrentScope, getIsolationScope, getTraceData, getTraceMetaTags, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureFeedback, captureConsoleIntegration, debugIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, metricsDefault as metrics, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, startNewTrace, getActiveSpan, withActiveSpan, getRootSpan, spanToJSON, spanToTraceHeader, spanToBaggageHeader, trpcMiddleware, zodErrorsIntegration, } from '@sentry/core';
45
+ export { addBreadcrumb, isInitialized, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setUser, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setCurrentClient, Scope, setMeasurement, getSpanDescendants, parameterize, getClient, getCurrentHub, getCurrentScope, getIsolationScope, getTraceData, getTraceMetaTags, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureFeedback, captureConsoleIntegration, debugIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, metricsDefault as metrics, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, startNewTrace, getActiveSpan, withActiveSpan, getRootSpan, spanToJSON, spanToTraceHeader, spanToBaggageHeader, trpcMiddleware, zodErrorsIntegration, profiler, } from '@sentry/core';
41
46
  export { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, SdkInfo, Event, EventHint, ErrorEvent, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, User, Span, } from '@sentry/types';
42
47
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,11 @@
1
1
  /// <reference types="node" />
2
2
  import { Debugger } from 'node:inspector';
3
- import { StackFrame, StackParser } from '@sentry/types';
4
3
  export type Variables = Record<string, unknown>;
5
4
  export type RateLimitIncrement = () => void;
5
+ /**
6
+ * The key used to store the local variables on the error object.
7
+ */
8
+ export declare const LOCAL_VARIABLES_KEY = "__SENTRY_ERROR_LOCAL_VARIABLES__";
6
9
  /**
7
10
  * Creates a rate limiter that will call the disable callback when the rate limit is reached and the enable callback
8
11
  * when a timeout has occurred.
@@ -15,19 +18,13 @@ export declare function createRateLimiter(maxPerSecond: number, enable: () => vo
15
18
  export type PausedExceptionEvent = Debugger.PausedEventDataType & {
16
19
  data: {
17
20
  description: string;
21
+ objectId?: string;
18
22
  };
19
23
  };
20
24
  /** Could this be an anonymous function? */
21
25
  export declare function isAnonymous(name: string | undefined): boolean;
22
26
  /** Do the function names appear to match? */
23
27
  export declare function functionNamesMatch(a: string | undefined, b: string | undefined): boolean;
24
- /** Creates a unique hash from stack frames */
25
- export declare function hashFrames(frames: StackFrame[] | undefined): string | undefined;
26
- /**
27
- * We use the stack parser to create a unique hash from the exception stack trace
28
- * This is used to lookup vars when the exception passes through the event processor
29
- */
30
- export declare function hashFromStack(stackParser: StackParser, stack: string | undefined): string | undefined;
31
28
  export interface FrameVariables {
32
29
  function: string;
33
30
  vars?: Variables;
@@ -1,6 +1,14 @@
1
1
  /// <reference types="node" />
2
2
  import { Debugger, InspectorNotification } from 'node:inspector';
3
+ import { StackFrame, StackParser } from '@sentry/types';
3
4
  import { LocalVariablesIntegrationOptions, Variables } from './common';
5
+ /** Creates a unique hash from stack frames */
6
+ export declare function hashFrames(frames: StackFrame[] | undefined): string | undefined;
7
+ /**
8
+ * We use the stack parser to create a unique hash from the exception stack trace
9
+ * This is used to lookup vars when the exception passes through the event processor
10
+ */
11
+ export declare function hashFromStack(stackParser: StackParser, stack: string | undefined): string | undefined;
4
12
  type OnPauseEvent = InspectorNotification<Debugger.PausedEventDataType>;
5
13
  export interface DebugSession {
6
14
  /** Configures and connects to the debug session */
@@ -0,0 +1,5 @@
1
+ export declare const instrumentAmqplib: ((options?: unknown) => void) & {
2
+ id: string;
3
+ };
4
+ export declare const amqplibIntegration: () => import("@sentry/types").Integration;
5
+ //# sourceMappingURL=amqplib.d.ts.map
@@ -0,0 +1,10 @@
1
+ export declare const instrumentDataloader: ((options?: unknown) => void) & {
2
+ id: string;
3
+ };
4
+ /**
5
+ * Dataloader integration
6
+ *
7
+ * Capture tracing data for Dataloader.
8
+ */
9
+ export declare const dataloaderIntegration: () => import("@sentry/types").Integration;
10
+ //# sourceMappingURL=dataloader.d.ts.map
@@ -0,0 +1,10 @@
1
+ export declare const instrumentGenericPool: ((options?: unknown) => void) & {
2
+ id: string;
3
+ };
4
+ /**
5
+ * GenericPool integration
6
+ *
7
+ * Capture tracing data for GenericPool.
8
+ */
9
+ export declare const genericPoolIntegration: () => import("@sentry/types").Integration;
10
+ //# sourceMappingURL=genericPool.d.ts.map
@@ -0,0 +1,10 @@
1
+ export declare const instrumentKafka: ((options?: unknown) => void) & {
2
+ id: string;
3
+ };
4
+ /**
5
+ * KafkaJs integration
6
+ *
7
+ * Capture tracing data for KafkaJs.
8
+ */
9
+ export declare const kafkaIntegration: () => import("@sentry/types").Integration;
10
+ //# sourceMappingURL=kafka.d.ts.map
@@ -0,0 +1,10 @@
1
+ export declare const instrumentLruMemoizer: ((options?: unknown) => void) & {
2
+ id: string;
3
+ };
4
+ /**
5
+ * LruMemoizer integration
6
+ *
7
+ * Propagate traces through LruMemoizer.
8
+ */
9
+ export declare const lruMemoizerIntegration: () => import("@sentry/types").Integration;
10
+ //# sourceMappingURL=lrumemoizer.d.ts.map
@@ -1,4 +1,9 @@
1
1
  export declare const instrumentMysql: ((options?: unknown) => void) & {
2
+ /**
3
+ * MySQL integration
4
+ *
5
+ * Capture tracing data for mysql.
6
+ */
2
7
  id: string;
3
8
  };
4
9
  /**
@@ -1,4 +1,5 @@
1
- import { CatchTarget, InjectableTarget } from './types';
1
+ import { Span } from '@sentry/types';
2
+ import { CatchTarget, InjectableTarget, NextFunction, Observable } from './types';
2
3
  /**
3
4
  * Helper checking if a concrete target class is already patched.
4
5
  *
@@ -9,11 +10,19 @@ export declare function isPatched(target: InjectableTarget | CatchTarget): boole
9
10
  /**
10
11
  * Returns span options for nest middleware spans.
11
12
  */
12
- export declare function getMiddlewareSpanOptions(target: InjectableTarget | CatchTarget): {
13
+ export declare function getMiddlewareSpanOptions(target: InjectableTarget | CatchTarget, name?: string | undefined): {
13
14
  name: string;
14
15
  attributes: {
15
16
  "sentry.op": string;
16
17
  "sentry.origin": string;
17
18
  };
18
19
  };
20
+ /**
21
+ * Adds instrumentation to a js observable and attaches the span to an active parent span.
22
+ */
23
+ export declare function instrumentObservable(observable: Observable<unknown>, activeSpan: Span | undefined): void;
24
+ /**
25
+ * Proxies the next() call in a nestjs middleware to end the span when it is called.
26
+ */
27
+ export declare function getNextProxy(next: NextFunction, span: Span, prevSpan: undefined | Span): NextFunction;
19
28
  //# sourceMappingURL=helpers.d.ts.map
@@ -3,7 +3,9 @@ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opent
3
3
  /**
4
4
  * Custom instrumentation for nestjs.
5
5
  *
6
- * This hooks into the @Injectable decorator, which is applied on class middleware, interceptors and guards.
6
+ * This hooks into
7
+ * 1. @Injectable decorator, which is applied on class middleware, interceptors and guards.
8
+ * 2. @Catch decorator, which is applied on exception filters.
7
9
  */
8
10
  export declare class SentryNestInstrumentation extends InstrumentationBase {
9
11
  static readonly COMPONENT = "@nestjs/common";
@@ -1,4 +1,4 @@
1
- interface MinimalNestJsExecutionContext {
1
+ export interface MinimalNestJsExecutionContext {
2
2
  getType: () => string;
3
3
  switchToHttp: () => {
4
4
  getRequest: () => {
@@ -8,6 +8,7 @@ interface MinimalNestJsExecutionContext {
8
8
  method?: string;
9
9
  };
10
10
  };
11
+ _sentryInterceptorInstrumented?: boolean;
11
12
  }
12
13
  export interface NestJsErrorFilter {
13
14
  catch(exception: any, host: any): void;
@@ -20,11 +21,14 @@ export interface MinimalNestJsApp {
20
21
  }) => any;
21
22
  }) => void;
22
23
  }
24
+ export interface Subscription {
25
+ add(...args: any[]): void;
26
+ }
23
27
  /**
24
28
  * A minimal interface for an Observable.
25
29
  */
26
30
  export interface Observable<T> {
27
- subscribe(observer: (value: T) => void): void;
31
+ subscribe(next?: (value: T) => void, error?: (err: any) => void, complete?: () => void): Subscription;
28
32
  }
29
33
  /**
30
34
  * A NestJS call handler. Used in interceptors to start the route execution.
@@ -57,5 +61,8 @@ export interface CatchTarget {
57
61
  catch?: (...args: any[]) => any;
58
62
  };
59
63
  }
60
- export {};
64
+ /**
65
+ * Represents an express NextFunction.
66
+ */
67
+ export type NextFunction = (err?: any) => void;
61
68
  //# sourceMappingURL=types.d.ts.map
@@ -1,4 +1,6 @@
1
1
  import { Instrumentation } from '@opentelemetry/instrumentation';
2
+ /** Exported only for tests. */
3
+ export declare const INSTRUMENTED: Record<string, Instrumentation>;
2
4
  /**
3
5
  * Instrument an OpenTelemetry instrumentation once.
4
6
  * This will skip running instrumentation again if it was already instrumented.
@@ -4,7 +4,18 @@ import { ClientOptions, Options, SamplingContext, Scope, Span, TracePropagationT
4
4
  import { NodeTransportOptions } from './transports';
5
5
  export interface EsmLoaderHookOptions {
6
6
  include?: Array<string | RegExp>;
7
- exclude?: Array<string | RegExp>;
7
+ exclude?: Array<string | RegExp> /**
8
+ * When set to `true`, `import-in-the-middle` will only wrap ESM modules that are specifically instrumented by
9
+ * OpenTelemetry plugins. This is useful to avoid issues where `import-in-the-middle` is not compatible with some of
10
+ * your dependencies.
11
+ *
12
+ * **Note**: This feature will only work if you `Sentry.init()` the SDK before the instrumented modules are loaded.
13
+ * This can be achieved via the Node `--import` CLI flag or by loading your app via async `import()` after calling
14
+ * `Sentry.init()`.
15
+ *
16
+ * Defaults to `false`.
17
+ */;
18
+ onlyIncludeInstrumentedModules?: boolean;
8
19
  }
9
20
  export interface BaseNodeOptions {
10
21
  /**
@@ -101,6 +112,11 @@ export interface BaseNodeOptions {
101
112
  * Configures in which interval client reports will be flushed. Defaults to `60_000` (milliseconds).
102
113
  */
103
114
  clientReportFlushInterval?: number;
115
+ /**
116
+ * By default, the SDK will try to identify problems with your instrumentation setup and warn you about it.
117
+ * If you want to disable these warnings, set this to `true`.
118
+ */
119
+ disableInstrumentationWarnings?: boolean;
104
120
  /** Callback that is executed when a fatal global error occurs. */
105
121
  onFatalError?(this: void, error: Error): void;
106
122
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Checks and warns if a framework isn't wrapped by opentelemetry.
3
3
  */
4
- export declare function ensureIsWrapped(maybeWrappedModule: unknown, name: 'express' | 'connect' | 'fastify' | 'hapi' | 'koa'): void;
4
+ export declare function ensureIsWrapped(maybeWrappedFunction: unknown, name: 'express' | 'connect' | 'fastify' | 'hapi' | 'koa'): void;
5
5
  //# sourceMappingURL=ensureIsWrapped.d.ts.map
@@ -0,0 +1,13 @@
1
+ export declare const FALSY_ENV_VALUES: Set<string>;
2
+ export declare const TRUTHY_ENV_VALUES: Set<string>;
3
+ export type StrictBoolCast = {
4
+ strict: true;
5
+ };
6
+ export type LooseBoolCast = {
7
+ strict?: false;
8
+ };
9
+ export type BoolCastOptions = StrictBoolCast | LooseBoolCast;
10
+ export declare function envToBool(value: unknown, options?: LooseBoolCast): boolean;
11
+ export declare function envToBool(value: unknown, options: StrictBoolCast): boolean | null;
12
+ export declare function envToBool(value: unknown, options?: BoolCastOptions): boolean | null;
13
+ //# sourceMappingURL=envToBool.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/node",
3
- "version": "8.26.0",
3
+ "version": "8.34.0",
4
4
  "description": "Sentry Node SDK using OpenTelemetry for performance instrumentation",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node",
@@ -68,39 +68,42 @@
68
68
  "@opentelemetry/api": "^1.9.0",
69
69
  "@opentelemetry/context-async-hooks": "^1.25.1",
70
70
  "@opentelemetry/core": "^1.25.1",
71
- "@opentelemetry/instrumentation": "^0.52.1",
72
- "@opentelemetry/instrumentation-connect": "0.38.0",
73
- "@opentelemetry/instrumentation-express": "0.41.1",
74
- "@opentelemetry/instrumentation-fastify": "0.38.0",
75
- "@opentelemetry/instrumentation-fs": "0.14.0",
76
- "@opentelemetry/instrumentation-graphql": "0.42.0",
77
- "@opentelemetry/instrumentation-hapi": "0.40.0",
78
- "@opentelemetry/instrumentation-http": "0.52.1",
79
- "@opentelemetry/instrumentation-ioredis": "0.42.0",
80
- "@opentelemetry/instrumentation-koa": "0.42.0",
81
- "@opentelemetry/instrumentation-mongodb": "0.46.0",
82
- "@opentelemetry/instrumentation-mongoose": "0.40.0",
83
- "@opentelemetry/instrumentation-mysql": "0.40.0",
84
- "@opentelemetry/instrumentation-mysql2": "0.40.0",
85
- "@opentelemetry/instrumentation-nestjs-core": "0.39.0",
86
- "@opentelemetry/instrumentation-pg": "0.43.0",
87
- "@opentelemetry/instrumentation-redis-4": "0.41.0",
88
- "@opentelemetry/resources": "^1.25.1",
89
- "@opentelemetry/sdk-trace-base": "^1.25.1",
90
- "@opentelemetry/semantic-conventions": "^1.25.1",
91
- "@prisma/instrumentation": "5.17.0",
92
- "@sentry/core": "8.26.0",
93
- "@sentry/opentelemetry": "8.26.0",
94
- "@sentry/types": "8.26.0",
95
- "@sentry/utils": "8.26.0",
71
+ "@opentelemetry/instrumentation": "^0.53.0",
72
+ "@opentelemetry/instrumentation-amqplib": "^0.42.0",
73
+ "@opentelemetry/instrumentation-connect": "0.39.0",
74
+ "@opentelemetry/instrumentation-dataloader": "0.12.0",
75
+ "@opentelemetry/instrumentation-express": "0.42.0",
76
+ "@opentelemetry/instrumentation-fastify": "0.39.0",
77
+ "@opentelemetry/instrumentation-fs": "0.15.0",
78
+ "@opentelemetry/instrumentation-generic-pool": "0.39.0",
79
+ "@opentelemetry/instrumentation-graphql": "0.43.0",
80
+ "@opentelemetry/instrumentation-hapi": "0.41.0",
81
+ "@opentelemetry/instrumentation-http": "0.53.0",
82
+ "@opentelemetry/instrumentation-ioredis": "0.43.0",
83
+ "@opentelemetry/instrumentation-kafkajs": "0.3.0",
84
+ "@opentelemetry/instrumentation-koa": "0.43.0",
85
+ "@opentelemetry/instrumentation-lru-memoizer": "0.40.0",
86
+ "@opentelemetry/instrumentation-mongodb": "0.47.0",
87
+ "@opentelemetry/instrumentation-mongoose": "0.42.0",
88
+ "@opentelemetry/instrumentation-mysql": "0.41.0",
89
+ "@opentelemetry/instrumentation-mysql2": "0.41.0",
90
+ "@opentelemetry/instrumentation-nestjs-core": "0.40.0",
91
+ "@opentelemetry/instrumentation-pg": "0.44.0",
92
+ "@opentelemetry/instrumentation-redis-4": "0.42.0",
93
+ "@opentelemetry/instrumentation-undici": "0.6.0",
94
+ "@opentelemetry/resources": "^1.26.0",
95
+ "@opentelemetry/sdk-trace-base": "^1.26.0",
96
+ "@opentelemetry/semantic-conventions": "^1.27.0",
97
+ "@prisma/instrumentation": "5.19.1",
98
+ "@sentry/core": "8.34.0",
99
+ "@sentry/opentelemetry": "8.34.0",
100
+ "@sentry/types": "8.34.0",
101
+ "@sentry/utils": "8.34.0",
96
102
  "import-in-the-middle": "^1.11.0"
97
103
  },
98
104
  "devDependencies": {
99
105
  "@types/node": "^14.18.0"
100
106
  },
101
- "optionalDependencies": {
102
- "opentelemetry-instrumentation-fetch-node": "1.2.3"
103
- },
104
107
  "scripts": {
105
108
  "build": "run-p build:transpile build:types",
106
109
  "build:dev": "yarn build",