@sentry/node 11.0.0-alpha.1 → 11.0.0-beta.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 (188) hide show
  1. package/README.md +19 -0
  2. package/build/cjs/bundler-plugin/esbuild.js.map +1 -1
  3. package/build/cjs/bundler-plugin/rollup.js.map +1 -1
  4. package/build/cjs/bundler-plugin/vite.js.map +1 -1
  5. package/build/cjs/bundler-plugin/webpack.js.map +1 -1
  6. package/build/cjs/index.js +56 -56
  7. package/build/cjs/integrations/anr/index.js +1 -1
  8. package/build/cjs/integrations/childProcess.js +0 -24
  9. package/build/cjs/integrations/childProcess.js.map +1 -1
  10. package/build/cjs/integrations/fs/vendored/instrumentation.js +4 -2
  11. package/build/cjs/integrations/fs/vendored/instrumentation.js.map +1 -1
  12. package/build/cjs/integrations/http/SentryHttpInstrumentation.js +7 -12
  13. package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +1 -1
  14. package/build/cjs/integrations/http/httpServerIntegration.js +4 -3
  15. package/build/cjs/integrations/http/httpServerIntegration.js.map +1 -1
  16. package/build/cjs/integrations/http/httpServerSpansIntegration.js +38 -92
  17. package/build/cjs/integrations/http/httpServerSpansIntegration.js.map +1 -1
  18. package/build/cjs/integrations/http/index.js +16 -30
  19. package/build/cjs/integrations/http/index.js.map +1 -1
  20. package/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
  21. package/build/cjs/integrations/node-fetch/undici-instrumentation.js +15 -7
  22. package/build/cjs/integrations/node-fetch/undici-instrumentation.js.map +1 -1
  23. package/build/cjs/integrations/nodeRuntimeMetrics.js +2 -1
  24. package/build/cjs/integrations/nodeRuntimeMetrics.js.map +1 -1
  25. package/build/cjs/integrations/onunhandledrejection.js +5 -3
  26. package/build/cjs/integrations/onunhandledrejection.js.map +1 -1
  27. package/build/cjs/integrations/pino.js +2 -3
  28. package/build/cjs/integrations/pino.js.map +1 -1
  29. package/build/cjs/integrations/processSession.js +1 -1
  30. package/build/cjs/integrations/processSession.js.map +1 -1
  31. package/build/cjs/integrations/tracing/hapi.js +10 -0
  32. package/build/cjs/integrations/tracing/hapi.js.map +1 -0
  33. package/build/cjs/integrations/tracing/index.js +1 -34
  34. package/build/cjs/integrations/tracing/index.js.map +1 -1
  35. package/build/cjs/integrations/tracing/koa.js +10 -0
  36. package/build/cjs/integrations/tracing/koa.js.map +1 -0
  37. package/build/cjs/integrations/workerThreads.js +35 -0
  38. package/build/cjs/integrations/workerThreads.js.map +1 -0
  39. package/build/cjs/sdk/api.js +2 -1
  40. package/build/cjs/sdk/api.js.map +1 -1
  41. package/build/cjs/sdk/client.js +25 -14
  42. package/build/cjs/sdk/client.js.map +1 -1
  43. package/build/cjs/sdk/index.js +17 -30
  44. package/build/cjs/sdk/index.js.map +1 -1
  45. package/build/cjs/transports/http.js +10 -3
  46. package/build/cjs/transports/http.js.map +1 -1
  47. package/build/cjs/utils/outgoingFetchRequest.js +1 -1
  48. package/build/cjs/utils/outgoingFetchRequest.js.map +1 -1
  49. package/build/esm/bundler-plugin/esbuild.js.map +1 -1
  50. package/build/esm/bundler-plugin/rollup.js.map +1 -1
  51. package/build/esm/bundler-plugin/vite.js.map +1 -1
  52. package/build/esm/bundler-plugin/webpack.js.map +1 -1
  53. package/build/esm/index.js +7 -8
  54. package/build/esm/index.js.map +1 -1
  55. package/build/esm/integrations/anr/index.js +1 -1
  56. package/build/esm/integrations/anr/worker-script.js +2 -2
  57. package/build/esm/integrations/childProcess.js +1 -25
  58. package/build/esm/integrations/childProcess.js.map +1 -1
  59. package/build/esm/integrations/fs/vendored/instrumentation.js +4 -2
  60. package/build/esm/integrations/fs/vendored/instrumentation.js.map +1 -1
  61. package/build/esm/integrations/http/SentryHttpInstrumentation.js +5 -10
  62. package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +1 -1
  63. package/build/esm/integrations/http/httpServerIntegration.js +3 -2
  64. package/build/esm/integrations/http/httpServerIntegration.js.map +1 -1
  65. package/build/esm/integrations/http/httpServerSpansIntegration.js +40 -94
  66. package/build/esm/integrations/http/httpServerSpansIntegration.js.map +1 -1
  67. package/build/esm/integrations/http/index.js +15 -29
  68. package/build/esm/integrations/http/index.js.map +1 -1
  69. package/build/esm/integrations/local-variables/local-variables-async.js +1 -1
  70. package/build/esm/integrations/local-variables/worker-script.js +1 -1
  71. package/build/esm/integrations/node-fetch/undici-instrumentation.js +17 -9
  72. package/build/esm/integrations/node-fetch/undici-instrumentation.js.map +1 -1
  73. package/build/esm/integrations/nodeRuntimeMetrics.js +2 -1
  74. package/build/esm/integrations/nodeRuntimeMetrics.js.map +1 -1
  75. package/build/esm/integrations/onunhandledrejection.js +5 -3
  76. package/build/esm/integrations/onunhandledrejection.js.map +1 -1
  77. package/build/esm/integrations/pino.js +2 -3
  78. package/build/esm/integrations/pino.js.map +1 -1
  79. package/build/esm/integrations/processSession.js +1 -1
  80. package/build/esm/integrations/processSession.js.map +1 -1
  81. package/build/esm/integrations/tracing/hapi.js +8 -0
  82. package/build/esm/integrations/tracing/hapi.js.map +1 -0
  83. package/build/esm/integrations/tracing/index.js +2 -35
  84. package/build/esm/integrations/tracing/index.js.map +1 -1
  85. package/build/esm/integrations/tracing/koa.js +8 -0
  86. package/build/esm/integrations/tracing/koa.js.map +1 -0
  87. package/build/esm/integrations/workerThreads.js +33 -0
  88. package/build/esm/integrations/workerThreads.js.map +1 -0
  89. package/build/esm/package.json +1 -1
  90. package/build/esm/sdk/api.js +2 -1
  91. package/build/esm/sdk/api.js.map +1 -1
  92. package/build/esm/sdk/client.js +25 -14
  93. package/build/esm/sdk/client.js.map +1 -1
  94. package/build/esm/sdk/index.js +11 -24
  95. package/build/esm/sdk/index.js.map +1 -1
  96. package/build/esm/transports/http.js +10 -3
  97. package/build/esm/transports/http.js.map +1 -1
  98. package/build/esm/utils/outgoingFetchRequest.js +2 -2
  99. package/build/esm/utils/outgoingFetchRequest.js.map +1 -1
  100. package/build/import-hook.mjs +1 -1
  101. package/build/types/bundler-plugin/esbuild.d.ts +3 -4
  102. package/build/types/bundler-plugin/esbuild.d.ts.map +1 -1
  103. package/build/types/bundler-plugin/rollup.d.ts +3 -4
  104. package/build/types/bundler-plugin/rollup.d.ts.map +1 -1
  105. package/build/types/bundler-plugin/vite.d.ts +3 -4
  106. package/build/types/bundler-plugin/vite.d.ts.map +1 -1
  107. package/build/types/bundler-plugin/webpack.d.ts +2 -2
  108. package/build/types/bundler-plugin/webpack.d.ts.map +1 -1
  109. package/build/types/index.d.ts +7 -6
  110. package/build/types/index.d.ts.map +1 -1
  111. package/build/types/integrations/childProcess.d.ts +2 -7
  112. package/build/types/integrations/childProcess.d.ts.map +1 -1
  113. package/build/types/integrations/fs/vendored/instrumentation.d.ts.map +1 -1
  114. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts +8 -62
  115. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +1 -1
  116. package/build/types/integrations/http/httpServerIntegration.d.ts +4 -3
  117. package/build/types/integrations/http/httpServerIntegration.d.ts.map +1 -1
  118. package/build/types/integrations/http/httpServerSpansIntegration.d.ts +2 -9
  119. package/build/types/integrations/http/httpServerSpansIntegration.d.ts.map +1 -1
  120. package/build/types/integrations/http/index.d.ts +16 -74
  121. package/build/types/integrations/http/index.d.ts.map +1 -1
  122. package/build/types/integrations/node-fetch/undici-instrumentation.d.ts.map +1 -1
  123. package/build/types/integrations/nodeRuntimeMetrics.d.ts.map +1 -1
  124. package/build/types/integrations/pino.d.ts.map +1 -1
  125. package/build/types/integrations/tracing/hapi.d.ts +13 -0
  126. package/build/types/integrations/tracing/hapi.d.ts.map +1 -0
  127. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  128. package/build/types/integrations/tracing/koa.d.ts +27 -0
  129. package/build/types/integrations/tracing/koa.d.ts.map +1 -0
  130. package/build/types/integrations/workerThreads.d.ts +8 -0
  131. package/build/types/integrations/workerThreads.d.ts.map +1 -0
  132. package/build/types/sdk/api.d.ts.map +1 -1
  133. package/build/types/sdk/client.d.ts +3 -1
  134. package/build/types/sdk/client.d.ts.map +1 -1
  135. package/build/types/sdk/index.d.ts.map +1 -1
  136. package/build/types/transports/http.d.ts +1 -1
  137. package/build/types/transports/http.d.ts.map +1 -1
  138. package/build/types/types.d.ts +13 -1
  139. package/build/types/types.d.ts.map +1 -1
  140. package/package.json +8 -6
  141. package/build/cjs/integrations/tracing/express.js +0 -11
  142. package/build/cjs/integrations/tracing/express.js.map +0 -1
  143. package/build/cjs/integrations/tracing/fastify/index.js +0 -40
  144. package/build/cjs/integrations/tracing/fastify/index.js.map +0 -1
  145. package/build/cjs/integrations/tracing/hapi/index.js +0 -44
  146. package/build/cjs/integrations/tracing/hapi/index.js.map +0 -1
  147. package/build/cjs/integrations/tracing/koa/index.js +0 -22
  148. package/build/cjs/integrations/tracing/koa/index.js.map +0 -1
  149. package/build/cjs/integrations/tracing/redis/cache.js +0 -43
  150. package/build/cjs/integrations/tracing/redis/cache.js.map +0 -1
  151. package/build/cjs/integrations/tracing/redis/index.js +0 -34
  152. package/build/cjs/integrations/tracing/redis/index.js.map +0 -1
  153. package/build/cjs/utils/redisCache.js +0 -98
  154. package/build/cjs/utils/redisCache.js.map +0 -1
  155. package/build/esm/integrations/tracing/express.js +0 -9
  156. package/build/esm/integrations/tracing/express.js.map +0 -1
  157. package/build/esm/integrations/tracing/fastify/index.js +0 -37
  158. package/build/esm/integrations/tracing/fastify/index.js.map +0 -1
  159. package/build/esm/integrations/tracing/hapi/index.js +0 -41
  160. package/build/esm/integrations/tracing/hapi/index.js.map +0 -1
  161. package/build/esm/integrations/tracing/koa/index.js +0 -20
  162. package/build/esm/integrations/tracing/koa/index.js.map +0 -1
  163. package/build/esm/integrations/tracing/redis/cache.js +0 -40
  164. package/build/esm/integrations/tracing/redis/cache.js.map +0 -1
  165. package/build/esm/integrations/tracing/redis/index.js +0 -28
  166. package/build/esm/integrations/tracing/redis/index.js.map +0 -1
  167. package/build/esm/utils/redisCache.js +0 -89
  168. package/build/esm/utils/redisCache.js.map +0 -1
  169. package/build/types/integrations/tracing/express.d.ts +0 -6
  170. package/build/types/integrations/tracing/express.d.ts.map +0 -1
  171. package/build/types/integrations/tracing/fastify/index.d.ts +0 -115
  172. package/build/types/integrations/tracing/fastify/index.d.ts.map +0 -1
  173. package/build/types/integrations/tracing/fastify/types.d.ts +0 -33
  174. package/build/types/integrations/tracing/fastify/types.d.ts.map +0 -1
  175. package/build/types/integrations/tracing/hapi/index.d.ts +0 -29
  176. package/build/types/integrations/tracing/hapi/index.d.ts.map +0 -1
  177. package/build/types/integrations/tracing/hapi/types.d.ts +0 -166
  178. package/build/types/integrations/tracing/hapi/types.d.ts.map +0 -1
  179. package/build/types/integrations/tracing/koa/index.d.ts +0 -26
  180. package/build/types/integrations/tracing/koa/index.d.ts.map +0 -1
  181. package/build/types/integrations/tracing/redis/cache.d.ts +0 -22
  182. package/build/types/integrations/tracing/redis/cache.d.ts.map +0 -1
  183. package/build/types/integrations/tracing/redis/index.d.ts +0 -21
  184. package/build/types/integrations/tracing/redis/index.d.ts.map +0 -1
  185. package/build/types/integrations/tracing/redis/vendored/types.d.ts +0 -9
  186. package/build/types/integrations/tracing/redis/vendored/types.d.ts.map +0 -1
  187. package/build/types/utils/redisCache.d.ts +0 -17
  188. package/build/types/utils/redisCache.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../../../src/bundler-plugin/webpack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AACpG,OAAO,KAAK,EAAE,0BAA0B,IAAI,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACpH,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAE1F,MAAM,MAAM,0BAA0B,GAAG,8BAA8B,GAAG;IACxE;;OAEG;IACH,gBAAgB,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;IAEzG;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,KAAK,eAAe,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE7F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG;IACzE,KAAK,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;CAC5C,CAUA"}
1
+ {"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../../../src/bundler-plugin/webpack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AACpG,OAAO,KAAK,EAAE,0BAA0B,IAAI,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACpH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAGlE,MAAM,MAAM,0BAA0B,GAAG,8BAA8B,GAAG;IACxE;;OAEG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAE3C;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,KAAK,eAAe,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE7F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG;IACzE,KAAK,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;CAC5C,CAUA"}
@@ -1,11 +1,9 @@
1
1
  export { httpIntegration } from './integrations/http';
2
2
  export { nativeNodeFetchIntegration } from './integrations/node-fetch';
3
3
  export { fsIntegration } from './integrations/fs';
4
- export { expressErrorHandler, setupExpressErrorHandler } from './integrations/tracing/express';
5
- export { fastifyIntegration, setupFastifyErrorHandler } from './integrations/tracing/fastify';
6
- export { amqplibIntegration, anthropicIntegration as anthropicAIIntegration, dataloaderIntegration, expressIntegration, firebaseIntegration, genericPoolIntegration, googleGenAIIntegration, graphqlDiagnosticsIntegration as graphqlIntegration, hapiIntegration, kafkajsIntegration as kafkaIntegration, knexIntegration, koaIntegration, langChainIntegration, langGraphIntegration, lruMemoizerIntegration, mongodbIntegration as mongoIntegration, mongooseIntegration, mysqlIntegration, mysql2Integration, openaiIntegration as openAIIntegration, postgresIntegration, postgresJsIntegration, tediousIntegration, vercelAiIntegration as vercelAIIntegration, } from '@sentry/server-utils/orchestrion';
7
- export { redisIntegration } from './integrations/tracing/redis';
8
- export { otlpIntegration, getOtlpTracesEndpoint, prismaIntegration, instrumentOpenAiClient, instrumentAnthropicAiClient, instrumentGoogleGenAIClient, createLangChainCallbackHandler, instrumentLangChainEmbeddings, instrumentStateGraph, instrumentStateGraphCompile, } from '@sentry/server-utils';
4
+ export { expressErrorHandler, setupExpressErrorHandler } from '@sentry/server-utils';
5
+ export { amqplibIntegration, anthropicAIIntegration, dataloaderIntegration, expressIntegration, type ExpressIntegrationOptions, firebaseIntegration, genericPoolIntegration, googleGenAIIntegration, graphqlIntegration, hapiIntegration, kafkaIntegration, knexIntegration, koaIntegration, langChainIntegration, langGraphIntegration, lruMemoizerIntegration, mongoIntegration, mongooseIntegration, mysqlIntegration, mysql2Integration, openAIIntegration, postgresIntegration, postgresJsIntegration, redisIntegration, tediousIntegration, vercelAIIntegration, } from '@sentry/server-utils';
6
+ export { openTelemetryIntegration, getOtlpTracesEndpoint, prismaIntegration, instrumentOpenAiClient, instrumentAnthropicAiClient, instrumentGoogleGenAIClient, createLangChainCallbackHandler, instrumentLangChainEmbeddings, instrumentStateGraph, instrumentStateGraphCompile, fastifyIntegration, setupFastifyErrorHandler, } from '@sentry/server-utils';
9
7
  export { setupHapiErrorHandler } from './integrations/tracing/hapi';
10
8
  export { setupKoaErrorHandler } from './integrations/tracing/koa';
11
9
  export { launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler, openFeatureIntegration, OpenFeatureIntegrationHook, statsigIntegration, unleashIntegration, growthbookIntegration, } from './integrations/featureFlagShims';
@@ -14,7 +12,8 @@ export { initOpenTelemetry } from './sdk/initOtel';
14
12
  export { getAutoPerformanceIntegrations } from './integrations/tracing';
15
13
  export type { NodeOptions } from './types';
16
14
  export { setOpenTelemetryContextAsyncContextStrategy } from '@sentry/opentelemetry';
17
- export { addBreadcrumb, isInitialized, isEnabled, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, eventFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setAttribute, setAttributes, setUser, setConversationId, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setCurrentClient, Scope, setMeasurement, getSpanDescendants, parameterize, getClient, getCurrentScope, getIsolationScope, getTraceData, getTraceMetaTags, httpHeadersToSpanAttributes, winterCGHeadersToDict, continueTrace, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureFeedback, captureConsoleIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, startNewTrace, bindScopeToEmitter, suppressTracing, getActiveSpan, withActiveSpan, getRootSpan, spanToStaticSpanJSON, spanToJSON, spanToTraceHeader, spanToBaggageHeader, trpcMiddleware, updateSpanName, supabaseIntegration, instrumentSupabaseClient, zodErrorsIntegration, profiler, consoleLoggingIntegration, createConsolaReporter, wrapMcpServerWithSentry, featureFlagsIntegration, spanStreamingIntegration, } from '@sentry/core';
15
+ export { addBreadcrumb, isInitialized, isEnabled, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, eventFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setAttribute, setAttributes, setUser, setConversationId, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setCurrentClient, Scope, setMeasurement, getSpanDescendants, parameterize, getClient, getCurrentScope, getIsolationScope, getTraceData, getTraceMetaTags, httpHeadersToSpanAttributes, winterCGHeadersToDict, continueTrace, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureFeedback, captureConsoleIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, startNewTrace, bindScopeToEmitter, suppressTracing, getActiveSpan, withActiveSpan, getRootSpan, spanToStaticSpanJSON, spanToJSON, spanToTraceHeader, spanToBaggageHeader, updateSpanName, supabaseIntegration, instrumentSupabaseClient, zodErrorsIntegration, profiler, consoleLoggingIntegration, createConsolaReporter, featureFlagsIntegration, spanStreamingIntegration, } from '@sentry/core';
16
+ export { trpcMiddleware, wrapMcpServerWithSentry } from '@sentry/core/server';
18
17
  export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, User, Span, Metric, Log, LogSeverityLevel, FeatureFlagsIntegration, ExclusiveEventHintOrCaptureContext, CaptureContext, } from '@sentry/core';
19
18
  export { metrics, withStaticSpan, withStreamedSpan, } from '@sentry/core';
20
19
  export * as logger from './logs/exports';
@@ -31,11 +30,13 @@ export { pinoIntegration } from './integrations/pino';
31
30
  export { spotlightIntegration } from './integrations/spotlight';
32
31
  export { systemErrorIntegration } from './integrations/systemError';
33
32
  export { createSentryWinstonTransport } from './integrations/winston';
33
+ export { workerThreadsIntegration } from './integrations/workerThreads';
34
34
  export { cron } from './cron';
35
35
  export { NODE_VERSION } from './nodeVersion';
36
36
  export { defaultStackParser, getSentryRelease } from './sdk/api';
37
37
  export { makeNodeTransport } from './transports';
38
38
  export { createGetModuleFromFilename } from './utils/module';
39
+ export { SENTRY_SEGMENT_NAME_SOURCE } from '@sentry/conventions/attributes';
39
40
  export { httpServerIntegration } from './integrations/http/httpServerIntegration';
40
41
  export { httpServerSpansIntegration } from './integrations/http/httpServerSpansIntegration';
41
42
  export { processSessionIntegration } from './integrations/processSession';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC9F,OAAO,EACL,kBAAkB,EAClB,oBAAoB,IAAI,sBAAsB,EAC9C,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,6BAA6B,IAAI,kBAAkB,EACnD,eAAe,EACf,kBAAkB,IAAI,gBAAgB,EACtC,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,IAAI,gBAAgB,EACtC,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,IAAI,iBAAiB,EACtC,mBAAmB,EACnB,qBAAqB,E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AAQ,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC"}
@@ -5,15 +5,10 @@ interface Options {
5
5
  * @default false
6
6
  */
7
7
  includeChildProcessArgs?: boolean;
8
- /**
9
- * Whether to capture errors from worker threads.
10
- *
11
- * @default true
12
- */
13
- captureWorkerErrors?: boolean;
14
8
  }
15
9
  /**
16
- * Capture breadcrumbs and events for child processes and worker threads.
10
+ * Capture breadcrumbs and events for child processes.
11
+ * For worker thread events, use `workerThreadsIntegration()` instead.
17
12
  */
18
13
  export declare const childProcessIntegration: (options?: Options | undefined) => import("@sentry/core").Integration & {
19
14
  name: "ChildProcess";
@@ -1 +1 @@
1
- {"version":3,"file":"childProcess.d.ts","sourceRoot":"","sources":["../../../src/integrations/childProcess.ts"],"names":[],"mappings":"AAKA,UAAU,OAAO;IACf;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAID;;GAEG;AACH,eAAO,MAAM,uBAAuB;;CAiBlC,CAAC"}
1
+ {"version":3,"file":"childProcess.d.ts","sourceRoot":"","sources":["../../../src/integrations/childProcess.ts"],"names":[],"mappings":"AAIA,UAAU,OAAO;IACf;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAID;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;CAWlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/fs/vendored/instrumentation.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAqB,uBAAuB,EAAmB,MAAM,SAAS,CAAC;AA+P3F,wBAAgB,uBAAuB,CAAC,MAAM,GAAE,uBAA4B,GAAG,IAAI,CAqBlF"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/fs/vendored/instrumentation.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAqB,uBAAuB,EAAmB,MAAM,SAAS,CAAC;AA+P3F,wBAAgB,uBAAuB,CAAC,MAAM,GAAE,uBAA4B,GAAG,IAAI,CAqBlF"}
@@ -1,7 +1,8 @@
1
- import type { ClientRequest, IncomingMessage, ServerResponse } from 'node:http';
2
- import type { HttpClientRequest, HttpIncomingMessage, Span } from '@sentry/core';
1
+ import type { ClientRequest, IncomingMessage } from 'node:http';
2
+ import type { Span } from '@sentry/core';
3
+ import type { HttpClientRequest, HttpIncomingMessage } from '@sentry/core/server';
3
4
  import * as http from 'node:http';
4
- interface OutgoingHttpRequestInstrumentationOptions {
5
+ export interface OutgoingHttpRequestInstrumentationOptions {
5
6
  /**
6
7
  * Whether breadcrumbs should be recorded for outgoing requests.
7
8
  *
@@ -9,9 +10,7 @@ interface OutgoingHttpRequestInstrumentationOptions {
9
10
  */
10
11
  breadcrumbs?: boolean;
11
12
  /**
12
- * Whether to create spans for outgoing requests (user preference).
13
- * This only takes effect if `createSpansForOutgoingRequests` is not disabled.
14
- * If `createSpansForOutgoingRequests` is explicitly set false, this option is ignored.
13
+ * Whether to create spans for outgoing requests.
15
14
  *
16
15
  * @default `true`
17
16
  */
@@ -21,13 +20,7 @@ interface OutgoingHttpRequestInstrumentationOptions {
21
20
  *
22
21
  * @default `true`
23
22
  */
24
- propagateTraceInOutgoingRequests?: boolean;
25
- /**
26
- * @deprecated Use spans option instead.
27
- *
28
- * @default `true`
29
- */
30
- createSpansForOutgoingRequests?: boolean;
23
+ tracePropagation?: boolean;
31
24
  /**
32
25
  * Do not instrument outgoing HTTP requests to URLs where the given callback returns `true`.
33
26
  * When it returns `true`, the request is skipped entirely: no breadcrumb and no span are created,
@@ -40,63 +33,16 @@ interface OutgoingHttpRequestInstrumentationOptions {
40
33
  /**
41
34
  * Hooks for outgoing request spans, only called when spans are created for outgoing requests
42
35
  * (i.e. when `spans` is enabled).
43
- * These mirror the OTEL HttpInstrumentation hooks for backwards compatibility.
44
36
  */
45
- outgoingRequestHook?: (span: Span, request: ClientRequest | HttpClientRequest) => void;
46
- outgoingResponseHook?: (span: Span, response: IncomingMessage | HttpIncomingMessage) => void;
37
+ outgoingRequestHook?: (span: Span, request: ClientRequest) => void;
38
+ outgoingResponseHook?: (span: Span, response: IncomingMessage) => void;
47
39
  outgoingRequestApplyCustomAttributes?: (span: Span, request: HttpClientRequest, response: HttpIncomingMessage) => void;
48
40
  }
49
- export type SentryHttpInstrumentationOptions = OutgoingHttpRequestInstrumentationOptions & {
50
- /**
51
- * @deprecated This no longer does anything.
52
- */
53
- extractIncomingTraceFromHeader?: boolean;
54
- /**
55
- * @deprecated This no longer does anything.
56
- */
57
- ignoreStaticAssets?: boolean;
58
- /**
59
- * @deprecated This no longer does anything.
60
- */
61
- disableIncomingRequestSpans?: boolean;
62
- /**
63
- * @deprecated This no longer does anything.
64
- */
65
- ignoreSpansForIncomingRequests?: (urlPath: string, request: IncomingMessage) => boolean;
66
- /**
67
- * @deprecated This no longer does anything.
68
- */
69
- ignoreIncomingRequestBody?: (url: string, request: http.RequestOptions) => boolean;
70
- /**
71
- * @deprecated This no longer does anything.
72
- */
73
- maxIncomingRequestBodySize?: 'none' | 'small' | 'medium' | 'always';
74
- /**
75
- * @deprecated This no longer does anything.
76
- */
77
- trackIncomingRequestsAsSessions?: boolean;
78
- /**
79
- * @deprecated This no longer does anything.
80
- */
81
- instrumentation?: {
82
- requestHook?: (span: Span, req: ClientRequest | IncomingMessage) => void;
83
- responseHook?: (span: Span, response: IncomingMessage | ServerResponse) => void;
84
- applyCustomAttributesOnSpan?: (span: Span, request: ClientRequest | IncomingMessage, response: IncomingMessage | ServerResponse) => void;
85
- };
86
- /**
87
- * @deprecated This no longer does anything.
88
- */
89
- sessionFlushingDelayMS?: number;
90
- };
91
41
  /**
92
42
  * This instruments the http modules for outgoing requests.
93
43
  * It uses the diagnostics channel if available, otherwise it falls back to monkey-patching.
94
44
  *
95
45
  * The instrumentation will start spans, create breadcrumbs, and propagate trace headers in outgoing requests (depending on the settings).
96
- * This can be called multiple times, where the last invocation will have the current options.
97
- *
98
- * @TODO Cleanup options in v11
99
46
  */
100
47
  export declare function instrumentHttpOutgoingRequests(instrumentationOptions?: OutgoingHttpRequestInstrumentationOptions): void;
101
- export {};
102
48
  //# sourceMappingURL=SentryHttpInstrumentation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SentryHttpInstrumentation.d.ts","sourceRoot":"","sources":["../../../../src/integrations/http/SentryHttpInstrumentation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAA8B,IAAI,EAAE,MAAM,cAAc,CAAC;AAU7G,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAOlC,UAAU,yCAAyC;IACjD;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAE3C;;;;OAI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AAE,eAAe,KAAK,IAAI,CAAC;IACvE,oCAAoC,CAAC,EAAE,CACrC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,mBAAmB,KAC1B,IAAI,CAAC;CACX;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC5C,sBAAsB,GAAE,yCAA8C,GACrE,IAAI,CAiDN"}
@@ -1,6 +1,7 @@
1
1
  import type { RequestOptions } from 'node:http';
2
- import type { HttpIncomingMessage, Integration } from '@sentry/core';
3
- import { recordRequestSession } from '@sentry/core';
2
+ import type { Integration } from '@sentry/core';
3
+ import type { HttpIncomingMessage } from '@sentry/core/server';
4
+ import { recordRequestSession } from '@sentry/core/server';
4
5
  export { recordRequestSession };
5
6
  interface WeakRefImpl<T> {
6
7
  deref(): T | undefined;
@@ -18,7 +19,7 @@ export interface HttpServerIntegrationOptions {
18
19
  */
19
20
  sessions?: boolean;
20
21
  /**
21
- * Number of milliseconds until sessions tracked with `trackIncomingRequestsAsSessions` will be flushed as a session aggregate.
22
+ * Number of milliseconds until sessions tracked with `sessions` will be flushed as a session aggregate.
22
23
  *
23
24
  * Defaults to `60000` (60s).
24
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"httpServerIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/http/httpServerIntegration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,KAAK,EAAE,mBAAmB,EAAsB,WAAW,EAAiB,MAAM,cAAc,CAAC;AACxG,OAAO,EAML,oBAAoB,EACrB,MAAM,cAAc,CAAC;AAKtB,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAMhC,UAAU,WAAW,CAAC,CAAC;IACrB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACxB;AAED,KAAK,iBAAiB,GAAG,CAAC,IAAI,EAAE,MAAM,OAAO,KAAK,OAAO,CAAC;AAC1D,KAAK,oCAAoC,GAAG,mBAAmB,GAAG;IAChE,kBAAkB,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC;IAEtE;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;CAC7D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,oCAAoC,EAAE,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAErH;AAmFD;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAA6B,CAC7D,OAAO,CAAC,EAAE,4BAA4B,KACnC,WAAW,GAAG;IACjB,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"httpServerIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/http/httpServerIntegration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,cAAc,CAAC;AAE/D,OAAO,KAAK,EAAE,mBAAmB,EAAsB,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAsD,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAK/G,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAMhC,UAAU,WAAW,CAAC,CAAC;IACrB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACxB;AAED,KAAK,iBAAiB,GAAG,CAAC,IAAI,EAAE,MAAM,OAAO,KAAK,OAAO,CAAC;AAC1D,KAAK,oCAAoC,GAAG,mBAAmB,GAAG;IAChE,kBAAkB,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC;IAEtE;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;CAC7D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,oCAAoC,EAAE,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAErH;AAmFD;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAA6B,CAC7D,OAAO,CAAC,EAAE,4BAA4B,KACnC,WAAW,GAAG;IACjB,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { Event, HttpClientRequest, HttpIncomingMessage, HttpServerResponse, Integration, Span } from '@sentry/core';
1
+ import type { Event, Integration, Span } from '@sentry/core';
2
+ import type { HttpIncomingMessage, HttpServerResponse } from '@sentry/core/server';
2
3
  import type { NodeClient } from '../../sdk/client';
3
4
  export interface HttpServerSpansIntegrationOptions {
4
5
  /**
@@ -27,14 +28,6 @@ export interface HttpServerSpansIntegrationOptions {
27
28
  * @default `[[401, 404], [301, 303], [305, 399]]`
28
29
  */
29
30
  ignoreStatusCodes?: (number | [number, number])[];
30
- /**
31
- * @deprecated This is deprecated in favor of `incomingRequestSpanHook`.
32
- */
33
- instrumentation?: {
34
- requestHook?: (span: Span, req: HttpClientRequest | HttpIncomingMessage) => void;
35
- responseHook?: (span: Span, response: HttpIncomingMessage | HttpServerResponse) => void;
36
- applyCustomAttributesOnSpan?: (span: Span, request: HttpClientRequest | HttpIncomingMessage, response: HttpIncomingMessage | HttpServerResponse) => void;
37
- };
38
31
  /**
39
32
  * A hook that can be used to mutate the span for incoming requests.
40
33
  * This is triggered after the span is created, but before it is recorded.
@@ -1 +1 @@
1
- {"version":3,"file":"httpServerSpansIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/http/httpServerSpansIntegration.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EACV,KAAK,EACL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EAEX,IAAI,EAGL,MAAM,cAAc,CAAC;AAqBtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQnD,MAAM,WAAW,iCAAiC;IAChD;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,KAAK,OAAO,CAAC;IAEpF;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;IAElD;;OAEG;IACH,eAAe,CAAC,EAAE;QAChB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,iBAAiB,GAAG,mBAAmB,KAAK,IAAI,CAAC;QACjF,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,mBAAmB,GAAG,kBAAkB,KAAK,IAAI,CAAC;QACxF,2BAA2B,CAAC,EAAE,CAC5B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,iBAAiB,GAAG,mBAAmB,EAChD,QAAQ,EAAE,mBAAmB,GAAG,kBAAkB,KAC/C,IAAI,CAAC;KACX,CAAC;IAEF;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAClG;AAmLD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAkC,CACvE,OAAO,CAAC,EAAE,iCAAiC,KACxC,WAAW,GAAG;IACjB,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACpC,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,GAAG,IAAI,CAAC;CAC9C,CAAC;AAOF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAa7D"}
1
+ {"version":3,"file":"httpServerSpansIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/http/httpServerSpansIntegration.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAiB,IAAI,EAA8B,MAAM,cAAc,CAAC;AACxG,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAuBnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQnD,MAAM,WAAW,iCAAiC;IAChD;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,KAAK,OAAO,CAAC;IAEpF;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;IAElD;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAClG;AAkJD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAkC,CACvE,OAAO,CAAC,EAAE,iCAAiC,KACxC,WAAW,GAAG;IACjB,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACpC,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,GAAG,IAAI,CAAC;CAC9C,CAAC;AAOF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAa7D"}
@@ -1,6 +1,8 @@
1
1
  import type { RequestOptions } from 'node:http';
2
- import type { HttpClientRequest, HttpIncomingMessage, HttpServerResponse, Span } from '@sentry/core';
3
- interface HttpOptions {
2
+ import type { HttpServerIntegrationOptions } from './httpServerIntegration';
3
+ import type { HttpServerSpansIntegrationOptions } from './httpServerSpansIntegration';
4
+ import type { OutgoingHttpRequestInstrumentationOptions } from './SentryHttpInstrumentation';
5
+ interface HttpOptions extends HttpServerIntegrationOptions, HttpServerSpansIntegrationOptions {
4
6
  /**
5
7
  * Whether breadcrumbs should be recorded for outgoing requests.
6
8
  * Defaults to true
@@ -14,19 +16,6 @@ interface HttpOptions {
14
16
  * Defaults to `true` when tracing is enabled.
15
17
  */
16
18
  spans?: boolean;
17
- /**
18
- * Whether the integration should create [Sessions](https://docs.sentry.io/product/releases/health/#sessions) for incoming requests to track the health and crash-free rate of your releases in Sentry.
19
- * Read more about Release Health: https://docs.sentry.io/product/releases/health/
20
- *
21
- * Defaults to `true`.
22
- */
23
- trackIncomingRequestsAsSessions?: boolean;
24
- /**
25
- * Number of milliseconds until sessions tracked with `trackIncomingRequestsAsSessions` will be flushed as a session aggregate.
26
- *
27
- * Defaults to `60000` (60s).
28
- */
29
- sessionFlushingDelayMS?: number;
30
19
  /**
31
20
  * Whether to inject trace propagation headers (sentry-trace, baggage, traceparent) into outgoing HTTP requests.
32
21
  *
@@ -49,72 +38,25 @@ interface HttpOptions {
49
38
  */
50
39
  ignoreOutgoingRequests?: (url: string, request: RequestOptions) => boolean;
51
40
  /**
52
- * Do not capture spans for incoming HTTP requests to URLs where the given callback returns `true`.
53
- * Spans will be non recording if tracing is disabled.
54
- *
55
- * The `urlPath` param consists of the URL path and query string (if any) of the incoming request.
56
- * For example: `'/users/details?id=123'`
57
- *
58
- * The `request` param contains the original {@type IncomingMessage} object of the incoming request.
59
- * You can use it to filter on additional properties like method, headers, etc.
60
- */
61
- ignoreIncomingRequests?: (urlPath: string, request: HttpIncomingMessage) => boolean;
62
- /**
63
- * A hook that can be used to mutate the span for incoming requests.
64
- * This is triggered after the span is created, but before it is recorded.
65
- */
66
- incomingRequestSpanHook?: (span: Span, request: HttpIncomingMessage, response: HttpServerResponse) => void;
67
- /**
68
- * Whether to automatically ignore common static asset requests like favicon.ico, robots.txt, etc.
69
- * This helps reduce noise in your transactions.
70
- *
71
- * @default `true`
72
- */
73
- ignoreStaticAssets?: boolean;
74
- /**
75
- * Do not capture spans for incoming HTTP requests with the given status codes.
76
- * By default, spans with some 3xx and 4xx status codes are ignored (see @default).
77
- * Expects an array of status codes or a range of status codes, e.g. [[300,399], 404] would ignore 3xx and 404 status codes.
78
- *
79
- * @default `[[401, 404], [301, 303], [305, 399]]`
80
- */
81
- dropSpansForIncomingRequestStatusCodes?: (number | [number, number])[];
82
- /**
83
- * Do not capture the request body for incoming HTTP requests to URLs where the given callback returns `true`.
84
- * This can be useful for long running requests where the body is not needed and we want to avoid capturing it.
85
- *
86
- * @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the incoming request.
87
- * @param request Contains the {@type RequestOptions} object used to make the incoming request.
41
+ * If true, do not generate spans for incoming requests at all.
42
+ * This is used by Remix to avoid generating spans for incoming requests, as it generates its own spans.
88
43
  */
89
- ignoreIncomingRequestBody?: (url: string, request: RequestOptions) => boolean;
44
+ disableIncomingRequestSpans?: boolean;
90
45
  /**
91
- * Controls the maximum size of incoming HTTP request bodies attached to events.
92
- *
93
- * Available options:
94
- * - 'none': No request bodies will be attached
95
- * - 'small': Request bodies up to 1,000 bytes will be attached
96
- * - 'medium': Request bodies up to 10,000 bytes will be attached (default)
97
- * - 'always': Request bodies will always be attached
98
- *
99
- * Note that even with 'always' setting, bodies exceeding 1MB will never be attached
100
- * for performance and security reasons.
101
- *
102
- * @default 'medium'
46
+ * Called after an outgoing request span is created.
47
+ * Only invoked when spans are created for outgoing requests.
103
48
  */
104
- maxIncomingRequestBodySize?: 'none' | 'small' | 'medium' | 'always';
49
+ outgoingRequestHook?: OutgoingHttpRequestInstrumentationOptions['outgoingRequestHook'];
105
50
  /**
106
- * If true, do not generate spans for incoming requests at all.
107
- * This is used by Remix to avoid generating spans for incoming requests, as it generates its own spans.
51
+ * Called when the outgoing request receives a response.
52
+ * Only invoked when spans are created for outgoing requests.
108
53
  */
109
- disableIncomingRequestSpans?: boolean;
54
+ outgoingResponseHook?: OutgoingHttpRequestInstrumentationOptions['outgoingResponseHook'];
110
55
  /**
111
- * Additional instrumentation options that are passed to the underlying HttpInstrumentation.
56
+ * Called when both the outgoing request and response are available.
57
+ * Only invoked when spans are created for outgoing requests.
112
58
  */
113
- instrumentation?: {
114
- requestHook?: (span: Span, req: HttpIncomingMessage | HttpClientRequest) => void;
115
- responseHook?: (span: Span, response: HttpIncomingMessage | HttpServerResponse) => void;
116
- applyCustomAttributesOnSpan?: (span: Span, request: HttpIncomingMessage | HttpClientRequest, response: HttpIncomingMessage | HttpServerResponse) => void;
117
- };
59
+ outgoingRequestApplyCustomAttributes?: OutgoingHttpRequestInstrumentationOptions['outgoingRequestApplyCustomAttributes'];
118
60
  }
119
61
  /**
120
62
  * The http integration instruments Node's internal http and https modules.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/http/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,E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AGG;IACH,oBAAoB,CAAC,EAAE,yCAAyC,CAAC,sBAAsB,CAAC,CAAC;IAEzF;;;OAGG;IACH,oCAAoC,CAAC,EAAE,yCAAyC,CAAC,sCAAsC,CAAC,CAAC;CAC1H;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe;;CA0D1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"undici-instrumentation.d.ts","sourceRoot":"","sources":["../../../../src/integrations/node-fetch/undici-instrumentation.ts"],"names":[],"mappings":"AA4DA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,SAAS,CAAC;AAgBjB;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,GAAE,gBAAqB,GAAG,IAAI,CAapE"}
1
+ {"version":3,"file":"undici-instrumentation.d.ts","sourceRoot":"","sources":["../../../../src/integrations/node-fetch/undici-instrumentation.ts"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,SAAS,CAAC;AAgBjB;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,GAAE,gBAAqB,GAAG,IAAI,CAapE"}
@@ -1 +1 @@
1
- {"version":3,"file":"nodeRuntimeMetrics.d.ts","sourceRoot":"","sources":["../../../src/integrations/nodeRuntimeMetrics.ts"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,wBAAgB,qCAAqC,CACnD,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,MAAM,GACtB,MAAM,CAgBR;AAED,MAAM,WAAW,yBAAyB;IACxC;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,EAAE;QAER,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC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CAAC;QAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,CAAC;IACF;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,6BAA6B;;CAuLxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"pino.d.ts","sourceRoot":"","sources":["../../../src/integrations/pino.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAgDpE,KAAK,WAAW,GAAG;IACjB;;;;;;OAMG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE;QACL;;;;WAIG;QACH,MAAM,EAAE,gBAAgB,EAAE,CAAC;QAC3B;;;;;WAKG;QACH,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF;;OAEG;IACH,GAAG,EAAE;QACH;;;;WAIG;QACH,MAAM,EAAE,gBAAgB,EAAE,CAAC;KAC5B,CAAC;CACH,CAAC;AAQF,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAC5D,CAAC;AAgHF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;;;wBACN,OAAO,GAAG,IAAI;0BAKZ,OAAO,GAAG,IAAI;CAKpC,CAAC"}
1
+ {"version":3,"file":"pino.d.ts","sourceRoot":"","sources":["../../../src/integrations/pino.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAgDpE,KAAK,WAAW,GAAG;IACjB;;;;;;OAMG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE;QACL;;;;WAIG;QACH,MAAM,EAAE,gBAAgB,EAAE,CAAC;QAC3B;;;;;WAKG;QACH,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF;;OAEG;IACH,GAAG,EAAE;QACH;;;;WAIG;QACH,MAAM,EAAE,gBAAgB,EAAE,CAAC;KAC5B,CAAC;CACH,CAAC;AAQF,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAC5D,CAAC;AA8GF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;;;wBACN,OAAO,GAAG,IAAI;0BAKZ,OAAO,GAAG,IAAI;CAKpC,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Add a Hapi plugin to capture errors to Sentry.
3
+ *
4
+ * @deprecated The error handler is now registered automatically when the Hapi
5
+ * server starts (via the orchestrion `@hapi/hapi` instrumentation), so calling
6
+ * this is no longer necessary. It remains a safe, idempotent operation when the
7
+ * handler is already attached, and is kept for setups where auto-registration is
8
+ * unavailable. This will be removed in a future major version.
9
+ *
10
+ * @param server The Hapi server to attach the error handler to
11
+ */
12
+ export declare function setupHapiErrorHandler(server: unknown): Promise<void>;
13
+ //# sourceMappingURL=hapi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hapi.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/hapi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAG1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AA6BhD,wBAAgB,8BAA8B,IAAI,WAAW,EAAE,CAgC9D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,wBAAgB,8BAA8B,IAAI,WAAW,EAAE,CAE9D"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Add a Koa error handler to capture errors to Sentry.
3
+ *
4
+ * @deprecated The error handler is now registered automatically when the Koa app
5
+ * starts (via the orchestrion `koa` instrumentation), so calling this is no
6
+ * longer necessary. It remains a safe, idempotent operation, and is kept for
7
+ * setups where auto-registration is unavailable. This will be removed in a
8
+ * future major version.
9
+ *
10
+ * @param app The Koa app instance
11
+ *
12
+ * @example
13
+ * ```javascript
14
+ * const Sentry = require('@sentry/node');
15
+ * const Koa = require("koa");
16
+ *
17
+ * const app = new Koa();
18
+ *
19
+ * // Add your routes, etc.
20
+ *
21
+ * app.listen(3000);
22
+ * ```
23
+ */
24
+ export declare const setupKoaErrorHandler: (app: {
25
+ on: (event: 'error', listener: (...args: any[]) => void) => unknown;
26
+ }) => void;
27
+ //# sourceMappingURL=koa.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"koa.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/koa.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,eAAO,MAAM,oBAAoB,QAAS;IAExC,EAAE,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,KAAK,OAAO,CAAC;CACrE,KAAG,IAGH,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Capture events and errors of worker threads.
3
+ * For child process events, use `childProcessIntegration()` instead.
4
+ */
5
+ export declare const workerThreadsIntegration: () => import("@sentry/core").Integration & {
6
+ name: "WorkerThreads";
7
+ };
8
+ //# sourceMappingURL=workerThreads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workerThreads.d.ts","sourceRoot":"","sources":["../../../src/integrations/workerThreads.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;CAWnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/sdk/api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIhD;;GAEG;AAEH,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAsGtE;AAED,2BAA2B;AAC3B,eAAO,MAAM,kBAAkB,EAAE,WAAmF,CAAC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/sdk/api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAKhD;;GAEG;AAEH,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAsGtE;AAED,2BAA2B;AAC3B,eAAO,MAAM,kBAAkB,EAAE,WAAmF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Tracer } from '@opentelemetry/api';
2
- import { ServerRuntimeClient } from '@sentry/core';
2
+ import { ServerRuntimeClient } from '@sentry/core/server';
3
3
  import { type AsyncLocalStorageLookup, type SentryTracerProvider } from '@sentry/opentelemetry';
4
4
  import type { NodeClientOptions } from '../types';
5
5
  /** A client for using Sentry with Node & OpenTelemetry. */
@@ -11,6 +11,8 @@ export declare class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
11
11
  private _clientReportOnExitFlushListener;
12
12
  private _logOnExitFlushListener;
13
13
  constructor(options: NodeClientOptions);
14
+ /** @inheritDoc */
15
+ init(): void;
14
16
  /** Get the OTEL tracer. */
15
17
  get tracer(): Tracer;
16
18
  /** @inheritDoc */
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/sdk/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAOL,mBAAmB,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAGhG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,2DAA2D;AAC3D,qBAAa,UAAW,SAAQ,mBAAmB,CAAC,iBAAiB,CAAC;IAC7D,aAAa,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAChD,uBAAuB,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAEpE,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,qBAAqB,CAA6B;IAC1D,OAAO,CAAC,gCAAgC,CAA2B;IACnE,OAAO,CAAC,uBAAuB,CAA2B;IAE1D,YAAmB,OAAO,EAAE,iBAAiB,EA8C5C;IAED,2BAA2B;IAC3B,IAAW,MAAM,IAAI,MAAM,CAW1B;IAED,kBAAkB;IAEL,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAQzD;IAED,kBAAkB;IAEL,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,CAmBrE;IAED;;;;;;OAMG;IASI,yBAAyB,IAAI,IAAI,CAgBvC;IAED,kBAAkB;IAClB,SAAS,CAAC,kBAAkB,IAAI,IAAI,CAMnC;CACF"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/sdk/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAWjD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AwC,IAAI,WAAW,EAAE,CAExE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAStE;AAED;;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,GAAG,SAAS,CAE5G"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAoCzD,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAI/D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAuCtC;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAExE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAMtE;AAED;;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,GAAG,SAAS,CAE5G"}
@@ -7,7 +7,7 @@ export interface NodeTransportOptions extends BaseTransportOptions {
7
7
  caCerts?: string | Buffer | Array<string | Buffer>;
8
8
  /** Custom HTTP module. Defaults to the native 'http' and 'https' modules. */
9
9
  httpModule?: HTTPModule;
10
- /** Allow overriding connection keepAlive, defaults to false */
10
+ /** Allow overriding connection keepAlive, defaults to true */
11
11
  keepAlive?: boolean;
12
12
  }
13
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/transports/http.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,oBAAoB,EACpB,SAAS,EAIV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,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"}
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/transports/http.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,oBAAoB,EACpB,SAAS,EAIV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,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,8DAA8D;IAC9D,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAkBD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAgC1E"}
@@ -1,4 +1,5 @@
1
- import type { ClientOptions, Options, Scope, ServerRuntimeOptions } from '@sentry/core';
1
+ import type { ClientOptions, Options, Scope } from '@sentry/core';
2
+ import type { ServerRuntimeOptions } from '@sentry/core/server';
2
3
  import type { NodeTransportOptions } from './transports';
3
4
  /**
4
5
  * Base options for the Sentry Node SDK.
@@ -20,6 +21,17 @@ export interface BaseNodeOptions extends ServerRuntimeOptions {
20
21
  * @default false
21
22
  */
22
23
  enableOpenTelemetrySetup?: boolean;
24
+ /**
25
+ * Controls whether the SDK installs its runtime diagnostics-channel injection hooks. These hooks
26
+ * transform supported modules (e.g. Express) at load time so they emit the diagnostics channels
27
+ * that the channel-based integrations subscribe to.
28
+ *
29
+ * Set this to `false` to opt out — for example when the channels are injected at build
30
+ * time via the bundler plugin, or when the runtime module hooks are unavailable.
31
+ *
32
+ * @default true
33
+ */
34
+ enableRuntimeChannelInjection?: boolean;
23
35
  /**
24
36
  * Override the runtime name reported in events.
25
37
  * Defaults to 'node' with the current process version if not specified.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;IAC3D;;;;;;;;;;;;;;OAcG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;;;OAKG;IACH,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7C;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAEtC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,OAAO,CAAC,oBAA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