@sentry/node 8.2.1 → 8.4.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 (167) hide show
  1. package/LICENSE +18 -11
  2. package/cjs/init.js +10 -0
  3. package/cjs/init.js.map +1 -0
  4. package/cjs/integrations/anr/index.js +4 -4
  5. package/cjs/integrations/anr/index.js.map +1 -1
  6. package/cjs/integrations/console.js +1 -1
  7. package/cjs/integrations/console.js.map +1 -1
  8. package/cjs/integrations/context.js +37 -11
  9. package/cjs/integrations/context.js.map +1 -1
  10. package/cjs/integrations/contextlines.js +2 -2
  11. package/cjs/integrations/contextlines.js.map +1 -1
  12. package/cjs/integrations/http.js +43 -12
  13. package/cjs/integrations/http.js.map +1 -1
  14. package/cjs/integrations/local-variables/common.js.map +1 -1
  15. package/cjs/integrations/local-variables/local-variables-async.js +3 -3
  16. package/cjs/integrations/local-variables/local-variables-async.js.map +1 -1
  17. package/cjs/integrations/local-variables/local-variables-sync.js +1 -1
  18. package/cjs/integrations/local-variables/local-variables-sync.js.map +1 -1
  19. package/cjs/integrations/modules.js +8 -8
  20. package/cjs/integrations/modules.js.map +1 -1
  21. package/cjs/integrations/node-fetch.js +53 -17
  22. package/cjs/integrations/node-fetch.js.map +1 -1
  23. package/cjs/integrations/spotlight.js +1 -1
  24. package/cjs/integrations/spotlight.js.map +1 -1
  25. package/cjs/integrations/tracing/connect.js +33 -8
  26. package/cjs/integrations/tracing/connect.js.map +1 -1
  27. package/cjs/integrations/tracing/express.js +16 -10
  28. package/cjs/integrations/tracing/express.js.map +1 -1
  29. package/cjs/integrations/tracing/fastify.js +37 -12
  30. package/cjs/integrations/tracing/fastify.js.map +1 -1
  31. package/cjs/integrations/tracing/graphql.js +8 -2
  32. package/cjs/integrations/tracing/graphql.js.map +1 -1
  33. package/cjs/integrations/tracing/hapi/index.js +28 -8
  34. package/cjs/integrations/tracing/hapi/index.js.map +1 -1
  35. package/cjs/integrations/tracing/koa.js +25 -9
  36. package/cjs/integrations/tracing/koa.js.map +1 -1
  37. package/cjs/integrations/tracing/nest.js +27 -0
  38. package/cjs/integrations/tracing/nest.js.map +1 -1
  39. package/cjs/proxy/base.js +1 -2
  40. package/cjs/proxy/base.js.map +1 -1
  41. package/cjs/proxy/index.js +2 -2
  42. package/cjs/proxy/index.js.map +1 -1
  43. package/cjs/proxy/parse-proxy-response.js.map +1 -1
  44. package/cjs/sdk/client.js +1 -1
  45. package/cjs/sdk/client.js.map +1 -1
  46. package/cjs/sdk/init.js +12 -9
  47. package/cjs/sdk/init.js.map +1 -1
  48. package/cjs/transports/http.js +5 -5
  49. package/cjs/transports/http.js.map +1 -1
  50. package/cjs/utils/commonjs.js +9 -0
  51. package/cjs/utils/commonjs.js.map +1 -0
  52. package/cjs/utils/ensureIsWrapped.js +33 -0
  53. package/cjs/utils/ensureIsWrapped.js.map +1 -0
  54. package/cjs/utils/getRequestUrl.js.map +1 -1
  55. package/cjs/utils/module.js +3 -3
  56. package/cjs/utils/module.js.map +1 -1
  57. package/esm/init.js +10 -0
  58. package/esm/init.js.map +1 -0
  59. package/esm/integrations/anr/index.js +3 -3
  60. package/esm/integrations/anr/index.js.map +1 -1
  61. package/esm/integrations/anr/worker-script.js +2 -2
  62. package/esm/integrations/console.js +1 -1
  63. package/esm/integrations/console.js.map +1 -1
  64. package/esm/integrations/context.js +33 -8
  65. package/esm/integrations/context.js.map +1 -1
  66. package/esm/integrations/contextlines.js +1 -1
  67. package/esm/integrations/contextlines.js.map +1 -1
  68. package/esm/integrations/http.js +45 -14
  69. package/esm/integrations/http.js.map +1 -1
  70. package/esm/integrations/local-variables/common.js.map +1 -1
  71. package/esm/integrations/local-variables/local-variables-async.js +2 -2
  72. package/esm/integrations/local-variables/local-variables-async.js.map +1 -1
  73. package/esm/integrations/local-variables/local-variables-sync.js +1 -1
  74. package/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
  75. package/esm/integrations/local-variables/worker-script.js +2 -2
  76. package/esm/integrations/modules.js +2 -2
  77. package/esm/integrations/modules.js.map +1 -1
  78. package/esm/integrations/node-fetch.js +55 -19
  79. package/esm/integrations/node-fetch.js.map +1 -1
  80. package/esm/integrations/spotlight.js +1 -1
  81. package/esm/integrations/spotlight.js.map +1 -1
  82. package/esm/integrations/tracing/connect.js +34 -9
  83. package/esm/integrations/tracing/connect.js.map +1 -1
  84. package/esm/integrations/tracing/express.js +18 -12
  85. package/esm/integrations/tracing/express.js.map +1 -1
  86. package/esm/integrations/tracing/fastify.js +38 -13
  87. package/esm/integrations/tracing/fastify.js.map +1 -1
  88. package/esm/integrations/tracing/graphql.js +8 -2
  89. package/esm/integrations/tracing/graphql.js.map +1 -1
  90. package/esm/integrations/tracing/hapi/index.js +30 -10
  91. package/esm/integrations/tracing/hapi/index.js.map +1 -1
  92. package/esm/integrations/tracing/koa.js +27 -11
  93. package/esm/integrations/tracing/koa.js.map +1 -1
  94. package/esm/integrations/tracing/nest.js +28 -1
  95. package/esm/integrations/tracing/nest.js.map +1 -1
  96. package/esm/proxy/base.js +1 -2
  97. package/esm/proxy/base.js.map +1 -1
  98. package/esm/proxy/index.js +2 -2
  99. package/esm/proxy/index.js.map +1 -1
  100. package/esm/proxy/parse-proxy-response.js.map +1 -1
  101. package/esm/sdk/client.js +1 -1
  102. package/esm/sdk/client.js.map +1 -1
  103. package/esm/sdk/init.js +10 -7
  104. package/esm/sdk/init.js.map +1 -1
  105. package/esm/transports/http.js +3 -3
  106. package/esm/transports/http.js.map +1 -1
  107. package/esm/utils/commonjs.js +7 -0
  108. package/esm/utils/commonjs.js.map +1 -0
  109. package/esm/utils/ensureIsWrapped.js +31 -0
  110. package/esm/utils/ensureIsWrapped.js.map +1 -0
  111. package/esm/utils/getRequestUrl.js.map +1 -1
  112. package/esm/utils/module.js +1 -1
  113. package/esm/utils/module.js.map +1 -1
  114. package/package.json +15 -7
  115. package/types/init.d.ts +2 -0
  116. package/types/init.d.ts.map +1 -0
  117. package/types/integrations/anr/index.d.ts.map +1 -1
  118. package/types/integrations/context.d.ts +6 -2
  119. package/types/integrations/context.d.ts.map +1 -1
  120. package/types/integrations/http.d.ts.map +1 -1
  121. package/types/integrations/local-variables/common.d.ts +1 -1
  122. package/types/integrations/local-variables/common.d.ts.map +1 -1
  123. package/types/integrations/local-variables/local-variables-sync.d.ts +1 -1
  124. package/types/integrations/local-variables/local-variables-sync.d.ts.map +1 -1
  125. package/types/integrations/node-fetch.d.ts.map +1 -1
  126. package/types/integrations/spotlight.d.ts +1 -1
  127. package/types/integrations/spotlight.d.ts.map +1 -1
  128. package/types/integrations/tracing/connect.d.ts.map +1 -1
  129. package/types/integrations/tracing/express.d.ts +1 -1
  130. package/types/integrations/tracing/express.d.ts.map +1 -1
  131. package/types/integrations/tracing/fastify.d.ts +4 -4
  132. package/types/integrations/tracing/fastify.d.ts.map +1 -1
  133. package/types/integrations/tracing/graphql.d.ts +15 -1
  134. package/types/integrations/tracing/graphql.d.ts.map +1 -1
  135. package/types/integrations/tracing/hapi/index.d.ts.map +1 -1
  136. package/types/integrations/tracing/koa.d.ts.map +1 -1
  137. package/types/integrations/tracing/nest.d.ts.map +1 -1
  138. package/types/proxy/base.d.ts +4 -4
  139. package/types/proxy/base.d.ts.map +1 -1
  140. package/types/proxy/helpers.d.ts +1 -1
  141. package/types/proxy/helpers.d.ts.map +1 -1
  142. package/types/proxy/index.d.ts +4 -4
  143. package/types/proxy/index.d.ts.map +1 -1
  144. package/types/proxy/parse-proxy-response.d.ts +2 -2
  145. package/types/proxy/parse-proxy-response.d.ts.map +1 -1
  146. package/types/sdk/init.d.ts.map +1 -1
  147. package/types/utils/commonjs.d.ts +3 -0
  148. package/types/utils/commonjs.d.ts.map +1 -0
  149. package/types/utils/ensureIsWrapped.d.ts +5 -0
  150. package/types/utils/ensureIsWrapped.d.ts.map +1 -0
  151. package/types/utils/getRequestUrl.d.ts +1 -1
  152. package/types/utils/getRequestUrl.d.ts.map +1 -1
  153. package/types-ts3.8/init.d.ts +2 -0
  154. package/types-ts3.8/integrations/context.d.ts +6 -2
  155. package/types-ts3.8/integrations/local-variables/common.d.ts +1 -1
  156. package/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +1 -1
  157. package/types-ts3.8/integrations/spotlight.d.ts +1 -1
  158. package/types-ts3.8/integrations/tracing/express.d.ts +1 -1
  159. package/types-ts3.8/integrations/tracing/fastify.d.ts +4 -4
  160. package/types-ts3.8/integrations/tracing/graphql.d.ts +15 -1
  161. package/types-ts3.8/proxy/base.d.ts +4 -4
  162. package/types-ts3.8/proxy/helpers.d.ts +1 -1
  163. package/types-ts3.8/proxy/index.d.ts +4 -4
  164. package/types-ts3.8/proxy/parse-proxy-response.d.ts +2 -2
  165. package/types-ts3.8/utils/commonjs.d.ts +3 -0
  166. package/types-ts3.8/utils/ensureIsWrapped.d.ts +5 -0
  167. package/types-ts3.8/utils/getRequestUrl.d.ts +1 -1
@@ -1,7 +1,21 @@
1
+ interface GraphqlOptions {
2
+ /** Do not create spans for resolvers. */
3
+ ignoreResolveSpans?: boolean;
4
+ /**
5
+ * Don't create spans for the execution of the default resolver on object properties.
6
+ *
7
+ * When a resolver function is not defined on the schema for a field, graphql will
8
+ * use the default resolver which just looks for a property with that name on the object.
9
+ * If the property is not a function, it's not very interesting to trace.
10
+ * This option can reduce noise and number of spans created.
11
+ */
12
+ ignoreTrivalResolveSpans?: boolean;
13
+ }
1
14
  /**
2
15
  * GraphQL integration
3
16
  *
4
17
  * Capture tracing data for GraphQL.
5
18
  */
6
- export declare const graphqlIntegration: () => import("@sentry/types").Integration;
19
+ export declare const graphqlIntegration: (_options?: GraphqlOptions | undefined) => import("@sentry/types").Integration;
20
+ export {};
7
21
  //# sourceMappingURL=graphql.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/graphql.ts"],"names":[],"mappings":"AAuBA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,2CAAyC,CAAC"}
1
+ {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/graphql.ts"],"names":[],"mappings":"AAOA,UAAU,cAAc;IACtB,yCAAyC;IACzC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;;OAOG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAwBD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,gFAAyC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/hapi/index.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAsC,MAAM,EAAE,MAAM,SAAS,CAAC;AAW1E;;;;;GAKG;AACH,eAAO,MAAM,eAAe,2CAAsC,CAAC;AAsBnE,eAAO,MAAM,eAAe;;;0BAIW,OAAO,GAAG,EAAE,GAAG,CAAC;CA6BtD,CAAC;AAEF;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYzE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/hapi/index.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAsC,MAAM,EAAE,MAAM,SAAS,CAAC;AAW1E;;;;;GAKG;AACH,eAAO,MAAM,eAAe,2CAAsC,CAAC;AAsBnE,eAAO,MAAM,eAAe;;;0BAIW,OAAO,GAAG,EAAE,GAAG,CAAC;CA6BtD,CAAC;AAEF;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAezE"}
@@ -1 +1 @@
1
- {"version":3,"file":"koa.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/koa.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,cAAc,2CAAqC,CAAC;AAGjE,eAAO,MAAM,oBAAoB;sBAA6B,GAAG,QAAQ,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI;MAAK,IAiB3G,CAAC"}
1
+ {"version":3,"file":"koa.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/koa.ts"],"names":[],"mappings":"AAiEA,eAAO,MAAM,cAAc,2CAAqC,CAAC;AAGjE,eAAO,MAAM,oBAAoB;sBAA6B,GAAG,QAAQ,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI;MAAK,IAU3G,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"nest.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/nest.ts"],"names":[],"mappings":"AAMA,UAAU,6BAA6B;IACrC,OAAO,EAAE,MAAM,MAAM,CAAC;IAEtB,YAAY,EAAE,MAAM;QAIlB,UAAU,EAAE,MAAM;YAChB,KAAK,CAAC,EAAE;gBACN,IAAI,CAAC,EAAE,MAAM,CAAC;aACf,CAAC;YACF,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;CACH;AAED,UAAU,iBAAiB;IAEzB,KAAK,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;CACxC;AAED,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACpD,qBAAqB,EAAE,CAAC,WAAW,EAAE;QACnC,SAAS,EAAE,CAAC,OAAO,EAAE,6BAA6B,EAAE,IAAI,EAAE;YAAE,MAAM,EAAE,MAAM,GAAG,CAAA;SAAE,KAAK,GAAG,CAAC;KACzF,KAAK,IAAI,CAAC;CACZ;AAWD;;;;GAIG;AACH,eAAO,MAAM,eAAe,2CAAsC,CAAC;AAEnE;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,gBAAgB,EAAE,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAkChG"}
1
+ {"version":3,"file":"nest.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/nest.ts"],"names":[],"mappings":"AAeA,UAAU,6BAA6B;IACrC,OAAO,EAAE,MAAM,MAAM,CAAC;IAEtB,YAAY,EAAE,MAAM;QAIlB,UAAU,EAAE,MAAM;YAChB,KAAK,CAAC,EAAE;gBACN,IAAI,CAAC,EAAE,MAAM,CAAC;aACf,CAAC;YACF,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;CACH;AAED,UAAU,iBAAiB;IAEzB,KAAK,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;CACxC;AAED,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACpD,qBAAqB,EAAE,CAAC,WAAW,EAAE;QACnC,SAAS,EAAE,CAAC,OAAO,EAAE,6BAA6B,EAAE,IAAI,EAAE;YAAE,MAAM,EAAE,MAAM,GAAG,CAAA;SAAE,KAAK,GAAG,CAAC;KACzF,KAAK,IAAI,CAAC;CACZ;AAWD;;;;GAIG;AACH,eAAO,MAAM,eAAe,2CAAsC,CAAC;AAEnE;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,gBAAgB,EAAE,UAAU,EAAE,iBAAiB,GAAG,IAAI,CA4ChG"}
@@ -29,10 +29,10 @@
29
29
  /// <reference types="node" />
30
30
  /// <reference types="node" />
31
31
  /// <reference types="node" />
32
- import * as http from 'http';
33
- import type * as net from 'net';
34
- import type { Duplex } from 'stream';
35
- import type * as tls from 'tls';
32
+ import * as http from 'node:http';
33
+ import type * as net from 'node:net';
34
+ import type { Duplex } from 'node:stream';
35
+ import type * as tls from 'node:tls';
36
36
  export * from './helpers';
37
37
  interface HttpConnectOpts extends net.TcpNetConnectOpts {
38
38
  secureEndpoint: false;
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/proxy/base.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0B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,CAAC,OAAO,CACd,GAAG,EAAE,IAAI,CAAC,aAAa,EACvB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,KAAK;IAErD;;OAEG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO;IAyBrD,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAkBnH,gBAAgB,IAAI,MAAM;IAS1B,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,IAAI,WAAW,CAAC,CAAC,EAAE,MAAM,EAIxB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,QAAQ,CAAC,CAAC,EAAE,MAAM,EAIrB;CACF"}
@@ -31,7 +31,7 @@
31
31
  /// <reference types="node" />
32
32
  import * as http from 'node:http';
33
33
  import * as https from 'node:https';
34
- import type { Readable } from 'stream';
34
+ import type { Readable } from 'node:stream';
35
35
  export type ThenableRequest = http.ClientRequest & {
36
36
  then: Promise<http.IncomingMessage>['then'];
37
37
  };
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/proxy/helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;AAGH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,aAAa,GAAG;IACjD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;CAC7C,CAAC;AAEF,wBAAsB,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAQhE;AAGD,wBAAsB,IAAI,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAUzD;AAED,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,GAAE,KAAK,CAAC,cAAmB,GAAG,eAAe,CAQvF"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/proxy/helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;AAGH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,aAAa,GAAG;IACjD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;CAC7C,CAAC;AAEF,wBAAsB,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAQhE;AAGD,wBAAsB,IAAI,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAUzD;AAED,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,GAAE,KAAK,CAAC,cAAmB,GAAG,eAAe,CAQvF"}
@@ -28,10 +28,10 @@
28
28
  /// <reference types="node" />
29
29
  /// <reference types="node" />
30
30
  /// <reference types="node" />
31
- import type * as http from 'http';
32
- import type { OutgoingHttpHeaders } from 'http';
33
- import * as net from 'net';
34
- import * as tls from 'tls';
31
+ import type * as http from 'node:http';
32
+ import type { OutgoingHttpHeaders } from 'node:http';
33
+ import * as net from 'node:net';
34
+ import * as tls from 'node:tls';
35
35
  import { Agent } from './base';
36
36
  import type { AgentConnectOpts } from './base';
37
37
  type Protocol<T> = T extends `${infer Protocol}:${infer _}` ? Protocol : never;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/proxy/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;AAIH,OAAO,KAAK,KAAK,IAAI,MAAM,MAAM,CAAC;AAClC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAO/C,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,QAAQ,IAAI,MAAM,CAAC,EAAE,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE/E,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACrD,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,KAAK;CAC/E,CAAC,MAAM,cAAc,CAAC,CAAC;AAExB,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GACpD,IAAI,CAAC,YAAY,GAAG;IAClB,OAAO,CAAC,EAAE,mBAAmB,GAAG,CAAC,MAAM,mBAAmB,CAAC,C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AC,GAAG,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACrD,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,KAAK;CAC/E,CAAC,MAAM,cAAc,CAAC,CAAC;AAExB,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GACpD,IAAI,CAAC,YAAY,GAAG;IAClB,OAAO,CAAC,EAAE,mBAAmB,GAAG,CAAC,MAAM,mBAAmB,CAAC,CAAC;CAC7D,CAAC;AAEJ;;;;;;;;;;;GAWG;AACH,qBAAa,eAAe,CAAC,GAAG,SAAS,MAAM,CAAE,SAAQ,KAAK;IAC5D,MAAM,CAAC,SAAS,6BAA8B;IAE9C,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC;IACpB,YAAY,EAAE,mBAAmB,GAAG,CAAC,MAAM,mBAAmB,CAAC,CAAC;IAChE,WAAW,EAAE,GAAG,CAAC,iBAAiB,GAAG,GAAG,CAAC,iBAAiB,CAAC;gBAE/C,KAAK,EAAE,GAAG,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,sBAAsB,CAAC,GAAG,CAAC;IAmBhE;;;OAGG;IACG,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;CAiGpF"}
@@ -28,8 +28,8 @@
28
28
  /// <reference types="node" />
29
29
  /// <reference types="node" />
30
30
  /// <reference types="node" />
31
- import type { IncomingHttpHeaders } from 'http';
32
- import type { Readable } from 'stream';
31
+ import type { IncomingHttpHeaders } from 'node:http';
32
+ import type { Readable } from 'node:stream';
33
33
  export interface ConnectResponse {
34
34
  statusCode: number;
35
35
  statusText: string;
@@ -1 +1 @@
1
- {"version":3,"file":"parse-proxy-response.d.ts","sourceRoot":"","sources":["../../../src/proxy/parse-proxy-response.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;AAIH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAOvC,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CA4F5G"}
1
+ {"version":3,"file":"parse-proxy-response.d.ts","sourceRoot":"","sources":["../../../src/proxy/parse-proxy-response.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;AAIH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAO5C,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CA4F5G"}
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/sdk/init.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAU,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAwBlE,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAa/D;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAoBxE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAStE;AAaD;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,IAAI,CAEhE;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,IAAI,CAE1F"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/sdk/init.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAU,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAwBlE,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAU/D;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAoBxE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAStE;AAaD;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,IAAI,CAEhE;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,IAAI,CAE1F"}
@@ -0,0 +1,3 @@
1
+ /** Detect CommonJS. */
2
+ export declare function isCjs(): boolean;
3
+ //# sourceMappingURL=commonjs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commonjs.d.ts","sourceRoot":"","sources":["../../../src/utils/commonjs.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,wBAAgB,KAAK,IAAI,OAAO,CAE/B"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Checks and warns if a framework isn't wrapped by opentelemetry.
3
+ */
4
+ export declare function ensureIsWrapped(maybeWrappedModule: unknown, name: 'express' | 'connect' | 'fastify' | 'hapi' | 'koa'): void;
5
+ //# sourceMappingURL=ensureIsWrapped.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensureIsWrapped.d.ts","sourceRoot":"","sources":["../../../src/utils/ensureIsWrapped.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAgB,eAAe,CAC7B,kBAAkB,EAAE,OAAO,EAC3B,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GACvD,IAAI,CAgBN"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import type { RequestOptions } from 'http';
2
+ import type { RequestOptions } from 'node:http';
3
3
  /** Build a full URL from request options. */
4
4
  export declare function getRequestUrl(requestOptions: RequestOptions): string;
5
5
  //# sourceMappingURL=getRequestUrl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRequestUrl.d.ts","sourceRoot":"","sources":["../../../src/utils/getRequestUrl.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE3C,6CAA6C;AAC7C,wBAAgB,aAAa,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAWpE"}
1
+ {"version":3,"file":"getRequestUrl.d.ts","sourceRoot":"","sources":["../../../src/utils/getRequestUrl.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,6CAA6C;AAC7C,wBAAgB,aAAa,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAWpE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=init.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
- import { readFile, readdir } from 'fs';
3
- import { DeviceContext } from '@sentry/types';
2
+ import { readFile, readdir } from 'node:fs';
3
+ import { AppContext, DeviceContext } from '@sentry/types';
4
4
  export declare const readFileAsync: typeof readFile.__promisify__;
5
5
  export declare const readDirAsync: typeof readdir.__promisify__;
6
6
  interface DeviceContextOptions {
@@ -18,6 +18,10 @@ interface ContextOptions {
18
18
  * Capture context about the environment and the device that the client is running on, to events.
19
19
  */
20
20
  export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/types").Integration;
21
+ /**
22
+ * Get app context information from process
23
+ */
24
+ export declare function getAppContext(): AppContext;
21
25
  /**
22
26
  * Gets device information from os
23
27
  */
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
+ import { Debugger } from 'node:inspector';
2
3
  import { StackFrame, StackParser } from '@sentry/types';
3
- import { Debugger } from 'inspector';
4
4
  export type Variables = Record<string, unknown>;
5
5
  export type RateLimitIncrement = () => void;
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { Debugger, InspectorNotification } from 'inspector';
2
+ import { Debugger, InspectorNotification } from 'node:inspector';
3
3
  import { LocalVariablesIntegrationOptions, Variables } from './common';
4
4
  type OnPauseEvent = InspectorNotification<Debugger.PausedEventDataType>;
5
5
  export interface DebugSession {
@@ -1,4 +1,4 @@
1
- import * as http from 'http';
1
+ import * as http from 'node:http';
2
2
  type SpotlightConnectionOptions = {
3
3
  /**
4
4
  * Set this if the Spotlight Sidecar is not running on localhost:8969
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import * as http from 'http';
2
+ import * as http from 'node:http';
3
3
  /**
4
4
  * Express integration
5
5
  *
@@ -1,13 +1,13 @@
1
+ interface Fastify {
2
+ register: (plugin: any) => void;
3
+ addHook: (hook: string, handler: (request: any, reply: any, error: Error) => void) => void;
4
+ }
1
5
  /**
2
6
  * Express integration
3
7
  *
4
8
  * Capture tracing data for fastify.
5
9
  */
6
10
  export declare const fastifyIntegration: () => import("@sentry/types").Integration;
7
- interface Fastify {
8
- register: (plugin: any) => void;
9
- addHook: (hook: string, handler: (request: any, reply: any, error: Error) => void) => void;
10
- }
11
11
  /**
12
12
  * Setup an error handler for Fastify.
13
13
  */
@@ -1,7 +1,21 @@
1
+ interface GraphqlOptions {
2
+ /** Do not create spans for resolvers. */
3
+ ignoreResolveSpans?: boolean;
4
+ /**
5
+ * Don't create spans for the execution of the default resolver on object properties.
6
+ *
7
+ * When a resolver function is not defined on the schema for a field, graphql will
8
+ * use the default resolver which just looks for a property with that name on the object.
9
+ * If the property is not a function, it's not very interesting to trace.
10
+ * This option can reduce noise and number of spans created.
11
+ */
12
+ ignoreTrivalResolveSpans?: boolean;
13
+ }
1
14
  /**
2
15
  * GraphQL integration
3
16
  *
4
17
  * Capture tracing data for GraphQL.
5
18
  */
6
- export declare const graphqlIntegration: () => import("@sentry/types").Integration;
19
+ export declare const graphqlIntegration: (_options?: GraphqlOptions | undefined) => import("@sentry/types").Integration;
20
+ export {};
7
21
  //# sourceMappingURL=graphql.d.ts.map
@@ -26,10 +26,10 @@
26
26
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
27
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
  */
29
- import * as http from 'http';
30
- import * as net from 'net';
31
- import { Duplex } from 'stream';
32
- import * as tls from 'tls';
29
+ import * as http from 'node:http';
30
+ import * as net from 'node:net';
31
+ import { Duplex } from 'node:stream';
32
+ import * as tls from 'node:tls';
33
33
  export * from './helpers';
34
34
  interface HttpConnectOpts extends net.TcpNetConnectOpts {
35
35
  secureEndpoint: false;
@@ -28,7 +28,7 @@
28
28
  */
29
29
  import * as http from 'node:http';
30
30
  import * as https from 'node:https';
31
- import { Readable } from 'stream';
31
+ import { Readable } from 'node:stream';
32
32
  export type ThenableRequest = http.ClientRequest & {
33
33
  then: Promise<http.IncomingMessage>['then'];
34
34
  };
@@ -26,10 +26,10 @@
26
26
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
27
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
  */
29
- import * as http from 'http';
30
- import { OutgoingHttpHeaders } from 'http';
31
- import * as net from 'net';
32
- import * as tls from 'tls';
29
+ import * as http from 'node:http';
30
+ import { OutgoingHttpHeaders } from 'node:http';
31
+ import * as net from 'node:net';
32
+ import * as tls from 'node:tls';
33
33
  import { Agent } from './base';
34
34
  import { AgentConnectOpts } from './base';
35
35
  type Protocol<T> = T extends string ? Protocol : never;
@@ -26,8 +26,8 @@
26
26
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
27
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
  */
29
- import { IncomingHttpHeaders } from 'http';
30
- import { Readable } from 'stream';
29
+ import { IncomingHttpHeaders } from 'node:http';
30
+ import { Readable } from 'node:stream';
31
31
  export interface ConnectResponse {
32
32
  statusCode: number;
33
33
  statusText: string;
@@ -0,0 +1,3 @@
1
+ /** Detect CommonJS. */
2
+ export declare function isCjs(): boolean;
3
+ //# sourceMappingURL=commonjs.d.ts.map
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Checks and warns if a framework isn't wrapped by opentelemetry.
3
+ */
4
+ export declare function ensureIsWrapped(maybeWrappedModule: unknown, name: 'express' | 'connect' | 'fastify' | 'hapi' | 'koa'): void;
5
+ //# sourceMappingURL=ensureIsWrapped.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { RequestOptions } from 'http';
2
+ import { RequestOptions } from 'node:http';
3
3
  /** Build a full URL from request options. */
4
4
  export declare function getRequestUrl(requestOptions: RequestOptions): string;
5
5
  //# sourceMappingURL=getRequestUrl.d.ts.map