@sentry/node 10.64.0 → 10.66.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 (121) hide show
  1. package/build/cjs/index.js +10 -8
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/http.js +4 -7
  4. package/build/cjs/integrations/http.js.map +1 -1
  5. package/build/cjs/integrations/tracing/dataloader/index.js +7 -2
  6. package/build/cjs/integrations/tracing/dataloader/index.js.map +1 -1
  7. package/build/cjs/integrations/tracing/graphql/index.js +3 -2
  8. package/build/cjs/integrations/tracing/graphql/index.js.map +1 -1
  9. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js.map +1 -1
  10. package/build/cjs/integrations/tracing/graphql/vendored/utils.js +5 -6
  11. package/build/cjs/integrations/tracing/graphql/vendored/utils.js.map +1 -1
  12. package/build/cjs/integrations/tracing/index.js +2 -2
  13. package/build/cjs/integrations/tracing/index.js.map +1 -1
  14. package/build/cjs/integrations/tracing/knex/index.js +6 -1
  15. package/build/cjs/integrations/tracing/knex/index.js.map +1 -1
  16. package/build/cjs/integrations/tracing/mongo/vendored/utils.js +1 -1
  17. package/build/cjs/integrations/tracing/mongo/vendored/utils.js.map +1 -1
  18. package/build/cjs/integrations/tracing/mysql2/index.js +3 -2
  19. package/build/cjs/integrations/tracing/mysql2/index.js.map +1 -1
  20. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js +1 -1
  21. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js.map +1 -1
  22. package/build/cjs/integrations/tracing/redis/index.js +3 -8
  23. package/build/cjs/integrations/tracing/redis/index.js.map +1 -1
  24. package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js +10 -8
  25. package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js.map +1 -1
  26. package/build/cjs/sdk/index.js +10 -11
  27. package/build/cjs/sdk/index.js.map +1 -1
  28. package/build/esm/index.js +2 -1
  29. package/build/esm/index.js.map +1 -1
  30. package/build/esm/integrations/http.js +5 -8
  31. package/build/esm/integrations/http.js.map +1 -1
  32. package/build/esm/integrations/tracing/dataloader/index.js +7 -2
  33. package/build/esm/integrations/tracing/dataloader/index.js.map +1 -1
  34. package/build/esm/integrations/tracing/graphql/index.js +4 -3
  35. package/build/esm/integrations/tracing/graphql/index.js.map +1 -1
  36. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js.map +1 -1
  37. package/build/esm/integrations/tracing/graphql/vendored/utils.js +5 -6
  38. package/build/esm/integrations/tracing/graphql/vendored/utils.js.map +1 -1
  39. package/build/esm/integrations/tracing/index.js +1 -1
  40. package/build/esm/integrations/tracing/index.js.map +1 -1
  41. package/build/esm/integrations/tracing/knex/index.js +6 -1
  42. package/build/esm/integrations/tracing/knex/index.js.map +1 -1
  43. package/build/esm/integrations/tracing/mongo/vendored/utils.js +2 -2
  44. package/build/esm/integrations/tracing/mongo/vendored/utils.js.map +1 -1
  45. package/build/esm/integrations/tracing/mysql2/index.js +4 -3
  46. package/build/esm/integrations/tracing/mysql2/index.js.map +1 -1
  47. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js +1 -1
  48. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js.map +1 -1
  49. package/build/esm/integrations/tracing/redis/index.js +5 -10
  50. package/build/esm/integrations/tracing/redis/index.js.map +1 -1
  51. package/build/esm/package.json +1 -1
  52. package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js +11 -9
  53. package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js.map +1 -1
  54. package/build/esm/sdk/index.js +10 -11
  55. package/build/esm/sdk/index.js.map +1 -1
  56. package/build/types/index.d.ts +2 -1
  57. package/build/types/index.d.ts.map +1 -1
  58. package/build/types/integrations/http.d.ts +2 -2
  59. package/build/types/integrations/http.d.ts.map +1 -1
  60. package/build/types/integrations/tracing/dataloader/index.d.ts.map +1 -1
  61. package/build/types/integrations/tracing/graphql/index.d.ts.map +1 -1
  62. package/build/types/integrations/tracing/graphql/vendored/graphql-types.d.ts +1 -135
  63. package/build/types/integrations/tracing/graphql/vendored/graphql-types.d.ts.map +1 -1
  64. package/build/types/integrations/tracing/graphql/vendored/utils.d.ts.map +1 -1
  65. package/build/types/integrations/tracing/knex/index.d.ts.map +1 -1
  66. package/build/types/integrations/tracing/mongo/vendored/utils.d.ts.map +1 -1
  67. package/build/types/integrations/tracing/mysql2/index.d.ts.map +1 -1
  68. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts.map +1 -1
  69. package/build/types/integrations/tracing/redis/index.d.ts.map +1 -1
  70. package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +2 -1
  71. package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts.map +1 -1
  72. package/build/types/sdk/index.d.ts.map +1 -1
  73. package/build/types-ts3.8/index.d.ts +2 -1
  74. package/build/types-ts3.8/integrations/http.d.ts +2 -2
  75. package/build/types-ts3.8/integrations/tracing/graphql/vendored/graphql-types.d.ts +1 -135
  76. package/build/types-ts3.8/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +2 -1
  77. package/package.json +6 -6
  78. package/build/cjs/integrations/tracing/prisma/index.js +0 -109
  79. package/build/cjs/integrations/tracing/prisma/index.js.map +0 -1
  80. package/build/cjs/integrations/tracing/prisma/vendored/active-tracing-helper.js +0 -145
  81. package/build/cjs/integrations/tracing/prisma/vendored/active-tracing-helper.js.map +0 -1
  82. package/build/cjs/integrations/tracing/prisma/vendored/constants.js +0 -14
  83. package/build/cjs/integrations/tracing/prisma/vendored/constants.js.map +0 -1
  84. package/build/cjs/integrations/tracing/prisma/vendored/global.js +0 -28
  85. package/build/cjs/integrations/tracing/prisma/vendored/global.js.map +0 -1
  86. package/build/cjs/integrations/tracing/prisma/vendored/instrumentation.js +0 -33
  87. package/build/cjs/integrations/tracing/prisma/vendored/instrumentation.js.map +0 -1
  88. package/build/esm/integrations/tracing/prisma/index.js +0 -106
  89. package/build/esm/integrations/tracing/prisma/index.js.map +0 -1
  90. package/build/esm/integrations/tracing/prisma/vendored/active-tracing-helper.js +0 -143
  91. package/build/esm/integrations/tracing/prisma/vendored/active-tracing-helper.js.map +0 -1
  92. package/build/esm/integrations/tracing/prisma/vendored/constants.js +0 -9
  93. package/build/esm/integrations/tracing/prisma/vendored/constants.js.map +0 -1
  94. package/build/esm/integrations/tracing/prisma/vendored/global.js +0 -24
  95. package/build/esm/integrations/tracing/prisma/vendored/global.js.map +0 -1
  96. package/build/esm/integrations/tracing/prisma/vendored/instrumentation.js +0 -31
  97. package/build/esm/integrations/tracing/prisma/vendored/instrumentation.js.map +0 -1
  98. package/build/types/integrations/tracing/prisma/index.d.ts +0 -34
  99. package/build/types/integrations/tracing/prisma/index.d.ts.map +0 -1
  100. package/build/types/integrations/tracing/prisma/vendored/active-tracing-helper.d.ts +0 -16
  101. package/build/types/integrations/tracing/prisma/vendored/active-tracing-helper.d.ts.map +0 -1
  102. package/build/types/integrations/tracing/prisma/vendored/constants.d.ts +0 -5
  103. package/build/types/integrations/tracing/prisma/vendored/constants.d.ts.map +0 -1
  104. package/build/types/integrations/tracing/prisma/vendored/global.d.ts +0 -5
  105. package/build/types/integrations/tracing/prisma/vendored/global.d.ts.map +0 -1
  106. package/build/types/integrations/tracing/prisma/vendored/instrumentation.d.ts +0 -15
  107. package/build/types/integrations/tracing/prisma/vendored/instrumentation.d.ts.map +0 -1
  108. package/build/types/integrations/tracing/prisma/vendored/types.d.ts +0 -34
  109. package/build/types/integrations/tracing/prisma/vendored/types.d.ts.map +0 -1
  110. package/build/types/integrations/tracing/prisma/vendored/v5-tracing-helper.d.ts +0 -38
  111. package/build/types/integrations/tracing/prisma/vendored/v5-tracing-helper.d.ts.map +0 -1
  112. package/build/types/integrations/tracing/prisma/vendored/v6-tracing-helper.d.ts +0 -31
  113. package/build/types/integrations/tracing/prisma/vendored/v6-tracing-helper.d.ts.map +0 -1
  114. package/build/types-ts3.8/integrations/tracing/prisma/index.d.ts +0 -34
  115. package/build/types-ts3.8/integrations/tracing/prisma/vendored/active-tracing-helper.d.ts +0 -16
  116. package/build/types-ts3.8/integrations/tracing/prisma/vendored/constants.d.ts +0 -5
  117. package/build/types-ts3.8/integrations/tracing/prisma/vendored/global.d.ts +0 -5
  118. package/build/types-ts3.8/integrations/tracing/prisma/vendored/instrumentation.d.ts +0 -15
  119. package/build/types-ts3.8/integrations/tracing/prisma/vendored/types.d.ts +0 -37
  120. package/build/types-ts3.8/integrations/tracing/prisma/vendored/v5-tracing-helper.d.ts +0 -44
  121. package/build/types-ts3.8/integrations/tracing/prisma/vendored/v6-tracing-helper.d.ts +0 -34
@@ -1,4 +1,4 @@
1
- import { channelIntegrations, detectOrchestrionSetup, ioredisChannelIntegration } from '@sentry/server-utils/orchestrion';
1
+ import { channelIntegrations, detectOrchestrionSetup, ioredisChannelIntegration, redisChannelIntegration } from '@sentry/server-utils/orchestrion';
2
2
  import { registerDiagnosticsChannelInjection } from '@sentry/server-utils/orchestrion/register';
3
3
  import { cacheResponseHook } from '../integrations/tracing/redis/cache.js';
4
4
  import { setDiagnosticsChannelInjectionLoader } from './diagnosticsChannelInjection.js';
@@ -6,19 +6,21 @@ import { setDiagnosticsChannelInjectionLoader } from './diagnosticsChannelInject
6
6
  function diagnosticsChannelInjectionIntegrations() {
7
7
  return channelIntegrations;
8
8
  }
9
- function experimentalUseDiagnosticsChannelInjection() {
9
+ function experimentalUseDiagnosticsChannelInjection(options) {
10
10
  setDiagnosticsChannelInjectionLoader(() => {
11
11
  const integrations = Object.values(channelIntegrations).map((createIntegration) => createIntegration());
12
12
  const replacedOtelIntegrationNames = integrations.map((i) => i.name);
13
13
  return {
14
- // ioredis is wired here rather than in the shared `channelIntegrations` registry: it needs
15
- // the node redis cache `responseHook`, and it only partially replaces the composite OTel
16
- // `Redis` integration (which also covers node-redis and ioredis >=5.11 native diagnostics_channel).
17
- // So it's added to the integration set but kept OUT of `replacedOtelIntegrationNames` — `Redis`
18
- // must stay; its ioredis <5.11 monkey-patch is gated off in `redisIntegration` instead.
19
- integrations: [...integrations, ioredisChannelIntegration({ responseHook: cacheResponseHook })],
14
+ // ioredis and redis are wired separately (not in `channelIntegrations`): they need the node
15
+ // redis cache `responseHook` and only partially replace the composite OTel `Redis` integration,
16
+ // so they're kept OUT of `replacedOtelIntegrationNames` — `Redis` must stay (batch + >=5.11 native DC).
17
+ integrations: [
18
+ ...integrations,
19
+ ioredisChannelIntegration({ responseHook: cacheResponseHook }),
20
+ redisChannelIntegration({ responseHook: cacheResponseHook })
21
+ ],
20
22
  replacedOtelIntegrationNames,
21
- register: registerDiagnosticsChannelInjection,
23
+ register: () => registerDiagnosticsChannelInjection(options),
22
24
  detect: detectOrchestrionSetup
23
25
  };
24
26
  });
@@ -1 +1 @@
1
- {"version":3,"file":"experimentalUseDiagnosticsChannelInjection.js","sources":["../../../src/sdk/experimentalUseDiagnosticsChannelInjection.ts"],"sourcesContent":["import {\n channelIntegrations,\n ioredisChannelIntegration,\n detectOrchestrionSetup,\n} from '@sentry/server-utils/orchestrion';\nimport { registerDiagnosticsChannelInjection } from '@sentry/server-utils/orchestrion/register';\nimport { cacheResponseHook } from '../integrations/tracing/redis/cache';\nimport type { DiagnosticsChannelInjection } from './diagnosticsChannelInjection';\nimport { setDiagnosticsChannelInjectionLoader } from './diagnosticsChannelInjection';\n\nexport function diagnosticsChannelInjectionIntegrations(): typeof channelIntegrations {\n return channelIntegrations;\n}\n\n/**\n * EXPERIMENTAL: opt into diagnostics-channel-based auto-instrumentation.\n *\n * Call this BEFORE `Sentry.init()`:\n *\n * ```ts\n * import * as Sentry from '@sentry/node';\n *\n * Sentry.experimentalUseDiagnosticsChannelInjection();\n * Sentry.init({\n * dsn: '__DSN__',\n * // other settings...\n * });\n * ```\n *\n * When this has been called AND span recording is enabled, `Sentry.init()`\n * uses the diagnostics-channel-injection-based integrations instead of the\n * OpenTelemetry ones, and installs the module hooks that inject the channels\n * (so libraries imported after `init()` publish the channel events).\n *\n * This is a standalone function rather than an `init()` option so that a\n * bundler drops all of it (and its transitive deps) when this function isn't\n * called. `init()` reads the loader registered below.\n *\n * An app that DOES call it gets the orchestrion code bundled as intended.\n *\n * In an unbundled (server-side runtime) app this eagerly loads only the small\n * subscriber/channel modules; the heavy code-transform dependencies stay lazy\n * inside `register()` and load only when injection actually runs.\n *\n * @experimental May change or be removed in any release.\n */\nexport function experimentalUseDiagnosticsChannelInjection(): void {\n setDiagnosticsChannelInjectionLoader((): DiagnosticsChannelInjection => {\n // The registry integrations 1:1 replace the OTel integration of the same name.\n const integrations = Object.values(channelIntegrations).map(createIntegration => createIntegration());\n const replacedOtelIntegrationNames = integrations.map(i => i.name);\n\n return {\n // ioredis is wired here rather than in the shared `channelIntegrations` registry: it needs\n // the node redis cache `responseHook`, and it only partially replaces the composite OTel\n // `Redis` integration (which also covers node-redis and ioredis >=5.11 native diagnostics_channel).\n // So it's added to the integration set but kept OUT of `replacedOtelIntegrationNames` — `Redis`\n // must stay; its ioredis <5.11 monkey-patch is gated off in `redisIntegration` instead.\n integrations: [...integrations, ioredisChannelIntegration({ responseHook: cacheResponseHook })],\n replacedOtelIntegrationNames,\n register: registerDiagnosticsChannelInjection,\n detect: detectOrchestrionSetup,\n };\n });\n}\n"],"names":[],"mappings":";;;;;AAUO,SAAS,uCAAA,GAAsE;AACpF,EAAA,OAAO,mBAAA;AACT;AAkCO,SAAS,0CAAA,GAAmD;AACjE,EAAA,oCAAA,CAAqC,MAAmC;AAEtE,IAAA,MAAM,YAAA,GAAe,OAAO,MAAA,CAAO,mBAAmB,EAAE,GAAA,CAAI,CAAA,iBAAA,KAAqB,mBAAmB,CAAA;AACpG,IAAA,MAAM,4BAAA,GAA+B,YAAA,CAAa,GAAA,CAAI,CAAA,CAAA,KAAK,EAAE,IAAI,CAAA;AAEjE,IAAA,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAML,YAAA,EAAc,CAAC,GAAG,YAAA,EAAc,0BAA0B,EAAE,YAAA,EAAc,iBAAA,EAAmB,CAAC,CAAA;AAAA,MAC9F,4BAAA;AAAA,MACA,QAAA,EAAU,mCAAA;AAAA,MACV,MAAA,EAAQ;AAAA,KACV;AAAA,EACF,CAAC,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"experimentalUseDiagnosticsChannelInjection.js","sources":["../../../src/sdk/experimentalUseDiagnosticsChannelInjection.ts"],"sourcesContent":["import {\n channelIntegrations,\n ioredisChannelIntegration,\n redisChannelIntegration,\n detectOrchestrionSetup,\n} from '@sentry/server-utils/orchestrion';\nimport type { RegisterDiagnosticsChannelInjectionOptions } from '@sentry/server-utils/orchestrion/register';\nimport { registerDiagnosticsChannelInjection } from '@sentry/server-utils/orchestrion/register';\nimport { cacheResponseHook } from '../integrations/tracing/redis/cache';\nimport type { DiagnosticsChannelInjection } from './diagnosticsChannelInjection';\nimport { setDiagnosticsChannelInjectionLoader } from './diagnosticsChannelInjection';\n\nexport function diagnosticsChannelInjectionIntegrations(): typeof channelIntegrations {\n return channelIntegrations;\n}\n\n/**\n * EXPERIMENTAL: opt into diagnostics-channel-based auto-instrumentation.\n *\n * Call this BEFORE `Sentry.init()`:\n *\n * ```ts\n * import * as Sentry from '@sentry/node';\n *\n * Sentry.experimentalUseDiagnosticsChannelInjection();\n * Sentry.init({\n * dsn: '__DSN__',\n * // other settings...\n * });\n * ```\n *\n * When this has been called AND span recording is enabled, `Sentry.init()`\n * uses the diagnostics-channel-injection-based integrations instead of the\n * OpenTelemetry ones, and installs the module hooks that inject the channels\n * (so libraries imported after `init()` publish the channel events).\n *\n * This is a standalone function rather than an `init()` option so that a\n * bundler drops all of it (and its transitive deps) when this function isn't\n * called. `init()` reads the loader registered below.\n *\n * An app that DOES call it gets the orchestrion code bundled as intended.\n *\n * In an unbundled (server-side runtime) app this eagerly loads only the small\n * subscriber/channel modules; the heavy code-transform dependencies stay lazy\n * inside `register()` and load only when injection actually runs.\n *\n * @experimental May change or be removed in any release.\n */\nexport function experimentalUseDiagnosticsChannelInjection(\n // Forwarded to `registerDiagnosticsChannelInjection()`; framework SDKs whose bundlers compile\n // the SDK into the app (e.g. `@sentry/nextjs`) use it to point the runtime module hook at the\n // tracing-hooks package location resolved at build time. Plain Node apps don't need it.\n options?: RegisterDiagnosticsChannelInjectionOptions,\n): void {\n setDiagnosticsChannelInjectionLoader((): DiagnosticsChannelInjection => {\n // These channel integrations 1:1 replace the OTel integration of the\n // same name. Framework SDKs that own their own channel listener\n // (e.g. `@sentry/nestjs`'s `Nest`) are NOT here. They pick the\n // channel-vs-OTel path themselves at integration `setupOnce`, so\n // there's nothing for the central swap to do.\n const integrations = Object.values(channelIntegrations).map(createIntegration => createIntegration());\n const replacedOtelIntegrationNames = integrations.map(i => i.name);\n\n return {\n // ioredis and redis are wired separately (not in `channelIntegrations`): they need the node\n // redis cache `responseHook` and only partially replace the composite OTel `Redis` integration,\n // so they're kept OUT of `replacedOtelIntegrationNames` — `Redis` must stay (batch + >=5.11 native DC).\n integrations: [\n ...integrations,\n ioredisChannelIntegration({ responseHook: cacheResponseHook }),\n redisChannelIntegration({ responseHook: cacheResponseHook }),\n ],\n replacedOtelIntegrationNames,\n register: () => registerDiagnosticsChannelInjection(options),\n detect: detectOrchestrionSetup,\n };\n });\n}\n"],"names":[],"mappings":";;;;;AAYO,SAAS,uCAAA,GAAsE;AACpF,EAAA,OAAO,mBAAA;AACT;AAkCO,SAAS,2CAId,OAAA,EACM;AACN,EAAA,oCAAA,CAAqC,MAAmC;AAMtE,IAAA,MAAM,YAAA,GAAe,OAAO,MAAA,CAAO,mBAAmB,EAAE,GAAA,CAAI,CAAA,iBAAA,KAAqB,mBAAmB,CAAA;AACpG,IAAA,MAAM,4BAAA,GAA+B,YAAA,CAAa,GAAA,CAAI,CAAA,CAAA,KAAK,EAAE,IAAI,CAAA;AAEjE,IAAA,OAAO;AAAA;AAAA;AAAA;AAAA,MAIL,YAAA,EAAc;AAAA,QACZ,GAAG,YAAA;AAAA,QACH,yBAAA,CAA0B,EAAE,YAAA,EAAc,iBAAA,EAAmB,CAAA;AAAA,QAC7D,uBAAA,CAAwB,EAAE,YAAA,EAAc,iBAAA,EAAmB;AAAA,OAC7D;AAAA,MACA,4BAAA;AAAA,MACA,QAAA,EAAU,MAAM,mCAAA,CAAoC,OAAO,CAAA;AAAA,MAC3D,MAAA,EAAQ;AAAA,KACV;AAAA,EACF,CAAC,CAAA;AACH;;;;"}
@@ -11,7 +11,7 @@ function getDefaultIntegrationsWithoutPerformance() {
11
11
  return nodeCoreIntegrations.filter((integration) => integration.name !== "Http" && integration.name !== "NodeFetch").concat(httpIntegration(), nativeNodeFetchIntegration());
12
12
  }
13
13
  function getDefaultIntegrations(options) {
14
- const integrations = [
14
+ return [
15
15
  ...getDefaultIntegrationsWithoutPerformance(),
16
16
  // We only add performance integrations if tracing is enabled
17
17
  // Note that this means that without tracing enabled, e.g. `expressIntegration()` will not be added
@@ -19,14 +19,6 @@ function getDefaultIntegrations(options) {
19
19
  // But `transactionName` will not be set automatically
20
20
  ...hasSpansEnabled(options) ? getAutoPerformanceIntegrations() : []
21
21
  ];
22
- if (isDiagnosticsChannelInjectionEnabled() && hasSpansEnabled(options)) {
23
- const diagnosticsChannelInjection = resolveDiagnosticsChannelInjection();
24
- if (diagnosticsChannelInjection) {
25
- const replaced = new Set(diagnosticsChannelInjection.replacedOtelIntegrationNames);
26
- return [...integrations.filter((i) => !replaced.has(i.name)), ...diagnosticsChannelInjection.integrations];
27
- }
28
- }
29
- return integrations;
30
22
  }
31
23
  function init(options = {}) {
32
24
  return _init(options, getDefaultIntegrations);
@@ -37,10 +29,17 @@ function _init(options = {}, getDefaultIntegrationsImpl) {
37
29
  if (diagnosticsChannelInjection) {
38
30
  diagnosticsChannelInjection.register();
39
31
  }
32
+ let defaultIntegrations = options.defaultIntegrations ?? getDefaultIntegrationsImpl(options);
33
+ if (diagnosticsChannelInjection && Array.isArray(defaultIntegrations) && defaultIntegrations.length > 0) {
34
+ const replaced = new Set(diagnosticsChannelInjection.replacedOtelIntegrationNames);
35
+ defaultIntegrations = [
36
+ ...defaultIntegrations.filter((integration) => !replaced.has(integration.name)),
37
+ ...diagnosticsChannelInjection.integrations
38
+ ];
39
+ }
40
40
  const client = init$1({
41
41
  ...options,
42
- // Only use Node SDK defaults if none provided
43
- defaultIntegrations: options.defaultIntegrations ?? getDefaultIntegrationsImpl(options)
42
+ defaultIntegrations
44
43
  });
45
44
  if (client && !options.skipOpenTelemetrySetup) {
46
45
  initOpenTelemetry(client, {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/sdk/index.ts"],"sourcesContent":["import type { Integration, Options } from '@sentry/core';\nimport { applySdkMetadata, hasSpansEnabled } from '@sentry/core';\nimport type { NodeClient } from '@sentry/node-core';\nimport {\n getDefaultIntegrations as getNodeCoreDefaultIntegrations,\n init as initNodeCore,\n validateOpenTelemetrySetup,\n} from '@sentry/node-core';\nimport { httpIntegration } from '../integrations/http';\nimport { nativeNodeFetchIntegration } from '../integrations/node-fetch';\nimport { getAutoPerformanceIntegrations } from '../integrations/tracing';\nimport type { NodeOptions } from '../types';\nimport {\n isDiagnosticsChannelInjectionEnabled,\n resolveDiagnosticsChannelInjection,\n} from './diagnosticsChannelInjection';\nimport { initOpenTelemetry } from './initOtel';\n\n/**\n * Get default integrations, excluding performance.\n */\nexport function getDefaultIntegrationsWithoutPerformance(): Integration[] {\n const nodeCoreIntegrations = getNodeCoreDefaultIntegrations();\n\n // Filter out the node-core HTTP and NodeFetch integrations and replace them with Node SDK's composite versions\n return nodeCoreIntegrations\n .filter(integration => integration.name !== 'Http' && integration.name !== 'NodeFetch')\n .concat(httpIntegration(), nativeNodeFetchIntegration());\n}\n\n/** Get the default integrations for the Node SDK. */\nexport function getDefaultIntegrations(options: Options): Integration[] {\n const integrations: Integration[] = [\n ...getDefaultIntegrationsWithoutPerformance(),\n // We only add performance integrations if tracing is enabled\n // Note that this means that without tracing enabled, e.g. `expressIntegration()` will not be added\n // This means that generally request isolation will work (because that is done by httpIntegration)\n // But `transactionName` will not be set automatically\n ...(hasSpansEnabled(options) ? getAutoPerformanceIntegrations() : []),\n ];\n\n // When the app opted into diagnostics-channel injection (via\n // `experimentalUseDiagnosticsChannelInjection()`) AND span recording is\n // enabled, swap the channel-based integrations in place of OTel equivalents\n // so the two don't both instrument the same library.\n //\n // Every channel-based integration we ship today is a 1:1 replacement for an\n // OTel performance/tracing integration and produces nothing but spans (those\n // only come from `getAutoPerformanceIntegrations()` above), so it's gated on\n // span recording.\n if (isDiagnosticsChannelInjectionEnabled() && hasSpansEnabled(options)) {\n const diagnosticsChannelInjection = resolveDiagnosticsChannelInjection();\n if (diagnosticsChannelInjection) {\n const replaced = new Set(diagnosticsChannelInjection.replacedOtelIntegrationNames);\n return [...integrations.filter(i => !replaced.has(i.name)), ...diagnosticsChannelInjection.integrations];\n }\n }\n return integrations;\n}\n\n/**\n * Initialize Sentry for Node.\n */\nexport function init(options: NodeOptions | undefined = {}): NodeClient | undefined {\n return _init(options, getDefaultIntegrations);\n}\n\n/**\n * Internal initialization function.\n */\nfunction _init(\n options: NodeOptions | undefined = {},\n getDefaultIntegrationsImpl: (options: Options) => Integration[],\n): NodeClient | undefined {\n applySdkMetadata(options, 'node');\n\n // EXPERIMENTAL: diagnostics-channel injection, opted into via\n // `experimentalUseDiagnosticsChannelInjection()`. Gated on span recording to\n // match the OTel integrations it replaces. With tracing off there are no\n // channel subscribers, so injecting is pointless work. `resolve...()` is\n // memoized, so `getDefaultIntegrations()` (below) sees the same instance.\n const diagnosticsChannelInjection =\n isDiagnosticsChannelInjectionEnabled() && hasSpansEnabled(options)\n ? resolveDiagnosticsChannelInjection()\n : undefined;\n\n // Install the channel-injection hooks as early as possible, before the app\n // imports its instrumented modules.\n if (diagnosticsChannelInjection) {\n diagnosticsChannelInjection.register();\n }\n\n const client = initNodeCore({\n ...options,\n // Only use Node SDK defaults if none provided\n defaultIntegrations: options.defaultIntegrations ?? getDefaultIntegrationsImpl(options),\n });\n\n // Add Node SDK specific OpenTelemetry setup\n if (client && !options.skipOpenTelemetrySetup) {\n initOpenTelemetry(client, {\n spanProcessors: options.openTelemetrySpanProcessors,\n });\n validateOpenTelemetrySetup();\n }\n\n // Warn about missing or doubled channel injection. Runs after the client\n // is created so the debug logger is enabled and the warning is emitted.\n if (diagnosticsChannelInjection) {\n diagnosticsChannelInjection.detect();\n }\n\n return client;\n}\n\n/**\n * Initialize Sentry for Node, without any integrations added by default.\n */\nexport function initWithoutDefaultIntegrations(options: NodeOptions | undefined = {}): NodeClient | undefined {\n return _init(options, () => []);\n}\n"],"names":["getNodeCoreDefaultIntegrations","initNodeCore"],"mappings":";;;;;;;;AAqBO,SAAS,wCAAA,GAA0D;AACxE,EAAA,MAAM,uBAAuBA,wBAAA,EAA+B;AAG5D,EAAA,OAAO,oBAAA,CACJ,MAAA,CAAO,CAAA,WAAA,KAAe,WAAA,CAAY,SAAS,MAAA,IAAU,WAAA,CAAY,IAAA,KAAS,WAAW,CAAA,CACrF,MAAA,CAAO,eAAA,EAAgB,EAAG,4BAA4B,CAAA;AAC3D;AAGO,SAAS,uBAAuB,OAAA,EAAiC;AACtE,EAAA,MAAM,YAAA,GAA8B;AAAA,IAClC,GAAG,wCAAA,EAAyC;AAAA;AAAA;AAAA;AAAA;AAAA,IAK5C,GAAI,eAAA,CAAgB,OAAO,CAAA,GAAI,8BAAA,KAAmC;AAAC,GACrE;AAWA,EAAA,IAAI,oCAAA,EAAqC,IAAK,eAAA,CAAgB,OAAO,CAAA,EAAG;AACtE,IAAA,MAAM,8BAA8B,kCAAA,EAAmC;AACvE,IAAA,IAAI,2BAAA,EAA6B;AAC/B,MAAA,MAAM,QAAA,GAAW,IAAI,GAAA,CAAI,2BAAA,CAA4B,4BAA4B,CAAA;AACjF,MAAA,OAAO,CAAC,GAAG,YAAA,CAAa,MAAA,CAAO,OAAK,CAAC,QAAA,CAAS,GAAA,CAAI,CAAA,CAAE,IAAI,CAAC,CAAA,EAAG,GAAG,4BAA4B,YAAY,CAAA;AAAA,IACzG;AAAA,EACF;AACA,EAAA,OAAO,YAAA;AACT;AAKO,SAAS,IAAA,CAAK,OAAA,GAAmC,EAAC,EAA2B;AAClF,EAAA,OAAO,KAAA,CAAM,SAAS,sBAAsB,CAAA;AAC9C;AAKA,SAAS,KAAA,CACP,OAAA,GAAmC,EAAC,EACpC,0BAAA,EACwB;AACxB,EAAA,gBAAA,CAAiB,SAAS,MAAM,CAAA;AAOhC,EAAA,MAAM,8BACJ,oCAAA,EAAqC,IAAK,gBAAgB,OAAO,CAAA,GAC7D,oCAAmC,GACnC,MAAA;AAIN,EAAA,IAAI,2BAAA,EAA6B;AAC/B,IAAA,2BAAA,CAA4B,QAAA,EAAS;AAAA,EACvC;AAEA,EAAA,MAAM,SAASC,MAAA,CAAa;AAAA,IAC1B,GAAG,OAAA;AAAA;AAAA,IAEH,mBAAA,EAAqB,OAAA,CAAQ,mBAAA,IAAuB,0BAAA,CAA2B,OAAO;AAAA,GACvF,CAAA;AAGD,EAAA,IAAI,MAAA,IAAU,CAAC,OAAA,CAAQ,sBAAA,EAAwB;AAC7C,IAAA,iBAAA,CAAkB,MAAA,EAAQ;AAAA,MACxB,gBAAgB,OAAA,CAAQ;AAAA,KACzB,CAAA;AACD,IAAA,0BAAA,EAA2B;AAAA,EAC7B;AAIA,EAAA,IAAI,2BAAA,EAA6B;AAC/B,IAAA,2BAAA,CAA4B,MAAA,EAAO;AAAA,EACrC;AAEA,EAAA,OAAO,MAAA;AACT;AAKO,SAAS,8BAAA,CAA+B,OAAA,GAAmC,EAAC,EAA2B;AAC5G,EAAA,OAAO,KAAA,CAAM,OAAA,EAAS,MAAM,EAAE,CAAA;AAChC;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/sdk/index.ts"],"sourcesContent":["import type { Integration, Options } from '@sentry/core';\nimport { applySdkMetadata, hasSpansEnabled } from '@sentry/core';\nimport type { NodeClient } from '@sentry/node-core';\nimport {\n getDefaultIntegrations as getNodeCoreDefaultIntegrations,\n init as initNodeCore,\n validateOpenTelemetrySetup,\n} from '@sentry/node-core';\nimport { httpIntegration } from '../integrations/http';\nimport { nativeNodeFetchIntegration } from '../integrations/node-fetch';\nimport { getAutoPerformanceIntegrations } from '../integrations/tracing';\nimport type { NodeOptions } from '../types';\nimport {\n isDiagnosticsChannelInjectionEnabled,\n resolveDiagnosticsChannelInjection,\n} from './diagnosticsChannelInjection';\nimport { initOpenTelemetry } from './initOtel';\n\n/**\n * Get default integrations, excluding performance.\n */\nexport function getDefaultIntegrationsWithoutPerformance(): Integration[] {\n const nodeCoreIntegrations = getNodeCoreDefaultIntegrations();\n\n // Filter out the node-core HTTP and NodeFetch integrations and replace them with Node SDK's composite versions\n return nodeCoreIntegrations\n .filter(integration => integration.name !== 'Http' && integration.name !== 'NodeFetch')\n .concat(httpIntegration(), nativeNodeFetchIntegration());\n}\n\n/** Get the default integrations for the Node SDK. */\nexport function getDefaultIntegrations(options: Options): Integration[] {\n return [\n ...getDefaultIntegrationsWithoutPerformance(),\n // We only add performance integrations if tracing is enabled\n // Note that this means that without tracing enabled, e.g. `expressIntegration()` will not be added\n // This means that generally request isolation will work (because that is done by httpIntegration)\n // But `transactionName` will not be set automatically\n ...(hasSpansEnabled(options) ? getAutoPerformanceIntegrations() : []),\n ];\n}\n\n/**\n * Initialize Sentry for Node.\n */\nexport function init(options: NodeOptions | undefined = {}): NodeClient | undefined {\n return _init(options, getDefaultIntegrations);\n}\n\n/**\n * Internal initialization function.\n */\nfunction _init(\n options: NodeOptions | undefined = {},\n getDefaultIntegrationsImpl: (options: Options) => Integration[],\n): NodeClient | undefined {\n applySdkMetadata(options, 'node');\n\n // EXPERIMENTAL: diagnostics-channel injection, opted into via\n // `experimentalUseDiagnosticsChannelInjection()`. Gated on span recording to\n // match the OTel integrations it replaces. With tracing off there are no\n // channel subscribers, so injecting is pointless work.\n const diagnosticsChannelInjection =\n isDiagnosticsChannelInjectionEnabled() && hasSpansEnabled(options)\n ? resolveDiagnosticsChannelInjection()\n : undefined;\n\n // Install the channel-injection hooks as early as possible, before the app\n // imports its instrumented modules.\n if (diagnosticsChannelInjection) {\n diagnosticsChannelInjection.register();\n }\n\n // Only use Node SDK defaults if none provided.\n let defaultIntegrations = options.defaultIntegrations ?? getDefaultIntegrationsImpl(options);\n\n // When opted into diagnostics-channel injection, swap the channel-based\n // integrations in place of their OTel equivalents so the two don't both\n // instrument the same library. Done here (rather than in\n // `getDefaultIntegrations`) so it also covers framework SDKs (e.g.\n // `@sentry/nestjs`) that pass their own `defaultIntegrations` array.\n //\n // Only when there's a non-empty default set to swap:\n // `defaultIntegrations: false` (not an array) and `[]` /\n // `initWithoutDefaultIntegrations()` (explicitly no defaults) are left\n // untouched, as appending channel integrations there would resurrect\n // defaults the caller opted out of.\n if (diagnosticsChannelInjection && Array.isArray(defaultIntegrations) && defaultIntegrations.length > 0) {\n const replaced = new Set(diagnosticsChannelInjection.replacedOtelIntegrationNames);\n defaultIntegrations = [\n ...defaultIntegrations.filter(integration => !replaced.has(integration.name)),\n ...diagnosticsChannelInjection.integrations,\n ];\n }\n\n const client = initNodeCore({\n ...options,\n defaultIntegrations,\n });\n\n // Add Node SDK specific OpenTelemetry setup\n if (client && !options.skipOpenTelemetrySetup) {\n initOpenTelemetry(client, {\n spanProcessors: options.openTelemetrySpanProcessors,\n });\n validateOpenTelemetrySetup();\n }\n\n // Warn about missing or doubled channel injection. Runs after the client\n // is created so the debug logger is enabled and the warning is emitted.\n if (diagnosticsChannelInjection) {\n diagnosticsChannelInjection.detect();\n }\n\n return client;\n}\n\n/**\n * Initialize Sentry for Node, without any integrations added by default.\n */\nexport function initWithoutDefaultIntegrations(options: NodeOptions | undefined = {}): NodeClient | undefined {\n return _init(options, () => []);\n}\n"],"names":["getNodeCoreDefaultIntegrations","initNodeCore"],"mappings":";;;;;;;;AAqBO,SAAS,wCAAA,GAA0D;AACxE,EAAA,MAAM,uBAAuBA,wBAAA,EAA+B;AAG5D,EAAA,OAAO,oBAAA,CACJ,MAAA,CAAO,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AAA,IAC1B,GAAG,OAAA;AAAA,IACH;AAAA,GACD,CAAA;AAGD,EAAA,IAAI,MAAA,IAAU,CAAC,OAAA,CAAQ,sBAAA,EAAwB;AAC7C,IAAA,iBAAA,CAAkB,MAAA,EAAQ;AAAA,MACxB,gBAAgB,OAAA,CAAQ;AAAA,KACzB,CAAA;AACD,IAAA,0BAAA,EAA2B;AAAA,EAC7B;AAIA,EAAA,IAAI,2BAAA,EAA6B;AAC/B,IAAA,2BAAA,CAA4B,MAAA,EAAO;AAAA,EACrC;AAEA,EAAA,OAAO,MAAA;AACT;AAKO,SAAS,8BAAA,CAA+B,OAAA,GAAmC,EAAC,EAA2B;AAC5G,EAAA,OAAO,KAAA,CAAM,OAAA,EAAS,MAAM,EAAE,CAAA;AAChC;;;;"}
@@ -13,7 +13,7 @@ export { mysql2Integration } from './integrations/tracing/mysql2';
13
13
  export { redisIntegration } from './integrations/tracing/redis';
14
14
  export { postgresIntegration } from './integrations/tracing/postgres';
15
15
  export { postgresJsIntegration } from './integrations/tracing/postgresjs';
16
- export { prismaIntegration } from './integrations/tracing/prisma';
16
+ export { prismaIntegration } from '@sentry/server-utils';
17
17
  export { hapiIntegration, setupHapiErrorHandler } from './integrations/tracing/hapi';
18
18
  export { honoIntegration, setupHonoErrorHandler } from './integrations/tracing/hono';
19
19
  export { koaIntegration, setupKoaErrorHandler } from './integrations/tracing/koa';
@@ -33,6 +33,7 @@ export { launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler, openFeatureI
33
33
  export { firebaseIntegration } from './integrations/tracing/firebase';
34
34
  export { init, getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations, } from './sdk';
35
35
  export { experimentalUseDiagnosticsChannelInjection, diagnosticsChannelInjectionIntegrations, } from './sdk/experimentalUseDiagnosticsChannelInjection';
36
+ export { isDiagnosticsChannelInjectionEnabled } from './sdk/diagnosticsChannelInjection';
36
37
  export { initOpenTelemetry, preloadOpenTelemetry } from './sdk/initOtel';
37
38
  export { getAutoPerformanceIntegrations } from './integrations/tracing';
38
39
  export type { NodeOptions } from './types';
@@ -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,kBAAkB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACnH,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;A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yBAAyB,EAC9B,kBAAkB,EAClB,eAAe,EACf,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,iBAAiB,EACjB,UAAU,EACV,IAAI,EACJ,YAAY,EACZ,0BAA0B,EAC1B,gBAAgB,EAChB,qCAAqC,GACtC,MAAM,mBAAmB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { RequestOptions } from 'node:http';
2
2
  import type { HttpClientRequest, HttpIncomingMessage, HttpServerResponse, Span } from '@sentry/core';
3
- import type { SentryHttpInstrumentationOptions } from '@sentry/node-core';
3
+ import { instrumentHttpOutgoingRequests } from '@sentry/node-core';
4
4
  interface HttpOptions {
5
5
  /**
6
6
  * Whether breadcrumbs should be recorded for outgoing requests.
@@ -117,7 +117,7 @@ interface HttpOptions {
117
117
  applyCustomAttributesOnSpan?: (span: Span, request: HttpIncomingMessage | HttpClientRequest, response: HttpIncomingMessage | HttpServerResponse) => void;
118
118
  };
119
119
  }
120
- export declare const instrumentSentryHttp: ((options?: SentryHttpInstrumentationOptions | undefined) => import("@opentelemetry/instrumentation").Instrumentation<import("@opentelemetry/instrumentation").InstrumentationConfig>) & {
120
+ export declare const instrumentSentryHttp: typeof instrumentHttpOutgoingRequests & {
121
121
  id: string;
122
122
  };
123
123
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/integrations/http.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAQrG,OAAO,KAAK,EAEV,gCAAgC,EAGjC,MAAM,mBAAmB,CAAC;AAY3B,UAAU,WAAW;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;OAMG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;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;OAMG;IACH,sCAAsC,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;IAEvE;;;;;;OAMG;IACH,yBAAyB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC;IAE9E;;;;;;;;;;;;;OAaG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAEpE;;;OAGG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IAEtC;;OAEG;IACH,eAAe,CAAC,EAAE;QAChB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,mBAAmB,GAAG,iBAAiB,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,mBAAmB,GAAG,iBAAiB,EAChD,QAAQ,EAAE,mBAAmB,GAAG,kBAAkB,KAC/C,IAAI,CAAC;KACX,CAAC;CACH;AAED,eAAO,MAAM,oBAAoB;;CAE/B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,eAAe;;CAuE1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/dataloader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAOvE,eAAO,MAAM,oBAAoB;;CAAkF,CAAC;AAWpH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB;;CAA4C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/dataloader/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAIvE,eAAO,MAAM,oBAAoB;;CAAkF,CAAC;AAmBpH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB;;CAA4C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/graphql/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAKpE,UAAU,cAAc;IACtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;;;;OASG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAID,eAAO,MAAM,iBAAiB;;CAI7B,CAAC;AAcF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB;;CAAyC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/graphql/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAMpE,UAAU,cAAc;IACtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;;;;OASG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAID,eAAO,MAAM,iBAAiB;;CAI7B,CAAC;AAiBF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB;;CAAyC,CAAC"}
@@ -1,136 +1,2 @@
1
- export type PromiseOrValue<T> = T | Promise<T>;
2
- export type Maybe<T> = null | undefined | T;
3
- export interface Location {
4
- start: number;
5
- end: number;
6
- startToken: Token;
7
- source: Source;
8
- [key: string]: any;
9
- }
10
- export interface Token {
11
- kind: string;
12
- start: number;
13
- end: number;
14
- line: number;
15
- column: number;
16
- value: string;
17
- prev: Token | null;
18
- next: Token | null;
19
- [key: string]: any;
20
- }
21
- export interface Source {
22
- body: string;
23
- name: string;
24
- locationOffset: Location;
25
- [key: string]: any;
26
- }
27
- export interface DocumentNode {
28
- kind: string;
29
- definitions: ReadonlyArray<DefinitionNode>;
30
- loc?: Location;
31
- [key: string]: any;
32
- }
33
- export interface DefinitionNode {
34
- kind: string;
35
- loc?: Location;
36
- [key: string]: any;
37
- }
38
- export interface OperationDefinitionNode extends DefinitionNode {
39
- operation: string;
40
- name?: {
41
- kind: string;
42
- value: string;
43
- loc?: Location;
44
- };
45
- [key: string]: any;
46
- }
47
- export interface ParseOptions {
48
- noLocation?: boolean;
49
- [key: string]: any;
50
- }
51
- export interface ExecutionArgs {
52
- schema: GraphQLSchema;
53
- document: DocumentNode;
54
- rootValue?: any;
55
- contextValue?: any;
56
- variableValues?: Maybe<{
57
- [key: string]: any;
58
- }>;
59
- operationName?: Maybe<string>;
60
- fieldResolver?: Maybe<GraphQLFieldResolver<any, any>>;
61
- typeResolver?: Maybe<GraphQLTypeResolver<any, any>>;
62
- [key: string]: any;
63
- }
64
- export interface ExecutionResult {
65
- errors?: ReadonlyArray<GraphQLError>;
66
- data?: Record<string, any> | null;
67
- [key: string]: any;
68
- }
69
- export interface GraphQLError {
70
- message: string;
71
- locations?: ReadonlyArray<{
72
- line: number;
73
- column: number;
74
- }>;
75
- path?: ReadonlyArray<string | number>;
76
- [key: string]: any;
77
- }
78
- export interface GraphQLSchema {
79
- getQueryType(): GraphQLObjectType | undefined | null;
80
- getMutationType(): GraphQLObjectType | undefined | null;
81
- [key: string]: any;
82
- }
83
- export interface GraphQLObjectType {
84
- name: string;
85
- getFields(): {
86
- [key: string]: GraphQLField;
87
- };
88
- [key: string]: any;
89
- }
90
- export interface GraphQLField {
91
- name: string;
92
- type: GraphQLOutputType;
93
- resolve?: GraphQLFieldResolver<any, any>;
94
- [key: string]: any;
95
- }
96
- export type GraphQLOutputType = GraphQLNamedOutputType | GraphQLWrappingType;
97
- interface GraphQLNamedOutputType {
98
- name: string;
99
- [key: string]: any;
100
- }
101
- interface GraphQLWrappingType {
102
- ofType: GraphQLOutputType;
103
- [key: string]: any;
104
- }
105
- export interface GraphQLUnionType {
106
- name: string;
107
- getTypes(): ReadonlyArray<GraphQLObjectType>;
108
- [key: string]: any;
109
- }
110
- export type GraphQLType = GraphQLOutputType | GraphQLUnionType;
111
- export type GraphQLFieldResolver<TSource, TContext, TArgs = any> = (source: TSource, args: TArgs, context: TContext, info: GraphQLResolveInfo) => any;
112
- export type GraphQLTypeResolver<TSource, TContext> = (value: TSource, context: TContext, info: GraphQLResolveInfo, abstractType: any) => any;
113
- export interface GraphQLResolveInfo {
114
- fieldName: string;
115
- fieldNodes: ReadonlyArray<{
116
- kind: string;
117
- loc?: Location;
118
- [key: string]: any;
119
- }>;
120
- returnType: {
121
- toString(): string;
122
- [key: string]: any;
123
- };
124
- parentType: {
125
- name: string;
126
- [key: string]: any;
127
- };
128
- path: any;
129
- [key: string]: any;
130
- }
131
- export type ValidationRule = any;
132
- export interface TypeInfo {
133
- [key: string]: any;
134
- }
135
- export {};
1
+ export type { DefinitionNode, DocumentNode, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLFieldResolver, GraphQLObjectType, GraphQLOutputType, GraphQLResolveInfo, GraphQLSchema, GraphQLType, GraphQLTypeResolver, GraphQLUnionType, Location, Maybe, OperationDefinitionNode, ParseOptions, PromiseOrValue, Source, Token, TypeInfo, ValidationRule, } from '@sentry/server-utils/orchestrion';
136
2
  //# sourceMappingURL=graphql-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-types.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/graphql/vendored/graphql-types.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,CAAC,CAAC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OAAO,EAAE,QAAQ,EAAE,KAAK,GAAG,GAAG,IAAI,CACjE,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,kBAAkB,KACrB,GAAG,CAAC;AAET,MAAM,MAAM,mBAAmB,CAAC,OAAO,EAAE,QAAQ,IAAI,CACnD,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,kBAAkB,EACxB,YAAY,EAAE,GAAG,KACd,GAAG,CAAC;AAET,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,QAAQ,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,CAAC;IAChF,UAAU,EAAE;QAAE,QAAQ,IAAI,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACvD,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACjD,IAAI,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC;AAEjC,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
1
+ {"version":3,"file":"graphql-types.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/graphql/vendored/graphql-types.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,WAAW,EACX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,CAAC,QAAQ,EAAE,YAAY,EAAE,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,kBAAkB,GAAG,SAAS,CAYlH;AAED,KAAK,kBAAkB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAsD9D,wBAAgB,qBAAqB,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAgDpG;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,KAAK,CAAC,iBAAiB,GAAG,WAAW,CAAC,EAC5C,SAAS,EAAE,MAAM,kCAAkC,GAClD,IAAI,CA4BN;AAgDD,wBAAgB,iBAAiB,CAAC,OAAO,GAAG,GAAG,EAAE,QAAQ,GAAG,GAAG,EAAE,KAAK,GAAG,GAAG,EAC1E,SAAS,EAAE,MAAM,kCAAkC,EACnD,aAAa,EAAE,KAAK,CAAC,oBAAoB,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,GAAG,WAAW,CAAC,EAClF,iBAAiB,UAAQ,GACxB,oBAAoB,CAAC,OAAO,EAAE,QAAQ,GAAG,qBAAqB,EAAE,KAAK,CAAC,GAAG,WAAW,CAqEtF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/knex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAOjE,eAAO,MAAM,cAAc;;CAA4E,CAAC;AAWxG;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/knex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAQjE,eAAO,MAAM,cAAc;;CAA4E,CAAC;AAkBxG;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongo/vendored/utils.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAkBzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AA4CtD;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,oBAAoB,GAAG,kBAAkB,CAchF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,GAAG,EAClB,EAAE,EAAE,gBAAgB,EACpB,OAAO,CAAC,EAAE,GAAG,EACb,SAAS,CAAC,EAAE,MAAM,GACjB,cAAc,CAmBhB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,qBAAqB,EAC/B,OAAO,CAAC,EAAE,oBAAoB,EAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAC7B,cAAc,CAwBhB;AA8CD,wBAAgB,cAAc,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI,CAO/D;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,EAAE,aAAa,EAAE,QAAQ,GAAG,QAAQ,CAkBlF;AAID,wBAAgB,yBAAyB,IAAI,OAAO,CAEnD"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongo/vendored/utils.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAmBzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AA4CtD;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,oBAAoB,GAAG,kBAAkB,CAchF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,GAAG,EAClB,EAAE,EAAE,gBAAgB,EACpB,OAAO,CAAC,EAAE,GAAG,EACb,SAAS,CAAC,EAAE,MAAM,GACjB,cAAc,CAmBhB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,qBAAqB,EAC/B,OAAO,CAAC,EAAE,oBAAoB,EAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAC7B,cAAc,CAwBhB;AA8CD,wBAAgB,cAAc,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI,CAO/D;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,EAAE,aAAa,EAAE,QAAQ,GAAG,QAAQ,CAkBlF;AAID,wBAAgB,yBAAyB,IAAI,OAAO,CAEnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/mysql2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAOnE,eAAO,MAAM,gBAAgB;;CAA8E,CAAC;AAW5G;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/mysql2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAQnE,eAAO,MAAM,gBAAgB;;CAA8E,CAAC;AAa5G;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mysql2/vendored/instrumentation.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AAwBrH,qBAAa,qBAAsB,SAAQ,mBAAmB,CAAC,qBAAqB,CAAC;gBAChE,MAAM,GAAE,qBAA0B;IAIrD,SAAS,CAAC,IAAI,IAAI,mCAAmC,EAAE;IA2DvD,OAAO,CAAC,WAAW;IAmEnB,OAAO,CAAC,mBAAmB;CAQ5B"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mysql2/vendored/instrumentation.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AA2BrH,qBAAa,qBAAsB,SAAQ,mBAAmB,CAAC,qBAAqB,CAAC;gBAChE,MAAM,GAAE,qBAA0B;IAIrD,SAAS,CAAC,IAAI,IAAI,mCAAmC,EAAE;IA2DvD,OAAO,CAAC,WAAW;IAmEnB,OAAO,CAAC,mBAAmB;CAQ5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/redis/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAqB,KAAK,YAAY,EAAmB,MAAM,SAAS,CAAC;AAOhF,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAgB3D;;;GAGG;AACH,eAAO,MAAM,eAAe,SACtB,IAAI;;CAyBT,CAAC;AAYF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB;;CAAuC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/redis/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAqB,KAAK,YAAY,EAAmB,MAAM,SAAS,CAAC;AAOhF,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAgB3D;;;GAGG;AACH,eAAO,MAAM,eAAe,SACtB,IAAI;;CAcT,CAAC;AAgBF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB;;CAAuC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { channelIntegrations } from '@sentry/server-utils/orchestrion';
2
+ import type { RegisterDiagnosticsChannelInjectionOptions } from '@sentry/server-utils/orchestrion/register';
2
3
  export declare function diagnosticsChannelInjectionIntegrations(): typeof channelIntegrations;
3
4
  /**
4
5
  * EXPERIMENTAL: opt into diagnostics-channel-based auto-instrumentation.
@@ -32,5 +33,5 @@ export declare function diagnosticsChannelInjectionIntegrations(): typeof channe
32
33
  *
33
34
  * @experimental May change or be removed in any release.
34
35
  */
35
- export declare function experimentalUseDiagnosticsChannelInjection(): void;
36
+ export declare function experimentalUseDiagnosticsChannelInjection(options?: RegisterDiagnosticsChannelInjectionOptions): void;
36
37
  //# sourceMappingURL=experimentalUseDiagnosticsChannelInjection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"experimentalUseDiagnosticsChannelInjection.d.ts","sourceRoot":"","sources":["../../../src/sdk/experimentalUseDiagnosticsChannelInjection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAGpB,MAAM,kCAAkC,CAAC;AAM1C,wBAAgB,uCAAuC,IAAI,OAAO,mBAAmB,CAEpF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,0CAA0C,IAAI,IAAI,CAkBjE"}
1
+ {"version":3,"file":"experimentalUseDiagnosticsChannelInjection.d.ts","sourceRoot":"","sources":["../../../src/sdk/experimentalUseDiagnosticsChannelInjection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAIpB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAM5G,wBAAgB,uCAAuC,IAAI,OAAO,mBAAmB,CAEpF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,0CAA0C,CAIxD,OAAO,CAAC,EAAE,0CAA0C,GACnD,IAAI,CAwBN"}
@@ -1 +1 @@
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;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AASpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAO5C;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAOxE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CA2BtE;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,GAAG,SAAS,CAElF;AAkDD;;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;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AASpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAO5C;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAOxE;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;AAsED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,GAAG,SAAS,CAE5G"}
@@ -13,7 +13,7 @@ export { mysql2Integration } from './integrations/tracing/mysql2';
13
13
  export { redisIntegration } from './integrations/tracing/redis';
14
14
  export { postgresIntegration } from './integrations/tracing/postgres';
15
15
  export { postgresJsIntegration } from './integrations/tracing/postgresjs';
16
- export { prismaIntegration } from './integrations/tracing/prisma';
16
+ export { prismaIntegration } from '@sentry/server-utils';
17
17
  export { hapiIntegration, setupHapiErrorHandler } from './integrations/tracing/hapi';
18
18
  export { honoIntegration, setupHonoErrorHandler } from './integrations/tracing/hono';
19
19
  export { koaIntegration, setupKoaErrorHandler } from './integrations/tracing/koa';
@@ -33,6 +33,7 @@ export { launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler, openFeatureI
33
33
  export { firebaseIntegration } from './integrations/tracing/firebase';
34
34
  export { init, getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations, } from './sdk';
35
35
  export { experimentalUseDiagnosticsChannelInjection, diagnosticsChannelInjectionIntegrations, } from './sdk/experimentalUseDiagnosticsChannelInjection';
36
+ export { isDiagnosticsChannelInjectionEnabled } from './sdk/diagnosticsChannelInjection';
36
37
  export { initOpenTelemetry, preloadOpenTelemetry } from './sdk/initOtel';
37
38
  export { getAutoPerformanceIntegrations } from './integrations/tracing';
38
39
  export { NodeOptions } from './types';
@@ -1,6 +1,6 @@
1
1
  import { RequestOptions } from 'node:http';
2
2
  import { HttpClientRequest, HttpIncomingMessage, HttpServerResponse, Span } from '@sentry/core';
3
- import { SentryHttpInstrumentationOptions } from '@sentry/node-core';
3
+ import { instrumentHttpOutgoingRequests } from '@sentry/node-core';
4
4
  interface HttpOptions {
5
5
  /**
6
6
  * Whether breadcrumbs should be recorded for outgoing requests.
@@ -120,7 +120,7 @@ interface HttpOptions {
120
120
  applyCustomAttributesOnSpan?: (span: Span, request: HttpIncomingMessage | HttpClientRequest, response: HttpIncomingMessage | HttpServerResponse) => void;
121
121
  };
122
122
  }
123
- export declare const instrumentSentryHttp: ((options?: SentryHttpInstrumentationOptions | undefined) => import("@opentelemetry/instrumentation").Instrumentation<import("@opentelemetry/instrumentation").InstrumentationConfig>) & {
123
+ export declare const instrumentSentryHttp: typeof instrumentHttpOutgoingRequests & {
124
124
  id: string;
125
125
  };
126
126
  /**
@@ -1,136 +1,2 @@
1
- export type PromiseOrValue<T> = T | Promise<T>;
2
- export type Maybe<T> = null | undefined | T;
3
- export interface Location {
4
- start: number;
5
- end: number;
6
- startToken: Token;
7
- source: Source;
8
- [key: string]: any;
9
- }
10
- export interface Token {
11
- kind: string;
12
- start: number;
13
- end: number;
14
- line: number;
15
- column: number;
16
- value: string;
17
- prev: Token | null;
18
- next: Token | null;
19
- [key: string]: any;
20
- }
21
- export interface Source {
22
- body: string;
23
- name: string;
24
- locationOffset: Location;
25
- [key: string]: any;
26
- }
27
- export interface DocumentNode {
28
- kind: string;
29
- definitions: ReadonlyArray<DefinitionNode>;
30
- loc?: Location;
31
- [key: string]: any;
32
- }
33
- export interface DefinitionNode {
34
- kind: string;
35
- loc?: Location;
36
- [key: string]: any;
37
- }
38
- export interface OperationDefinitionNode extends DefinitionNode {
39
- operation: string;
40
- name?: {
41
- kind: string;
42
- value: string;
43
- loc?: Location;
44
- };
45
- [key: string]: any;
46
- }
47
- export interface ParseOptions {
48
- noLocation?: boolean;
49
- [key: string]: any;
50
- }
51
- export interface ExecutionArgs {
52
- schema: GraphQLSchema;
53
- document: DocumentNode;
54
- rootValue?: any;
55
- contextValue?: any;
56
- variableValues?: Maybe<{
57
- [key: string]: any;
58
- }>;
59
- operationName?: Maybe<string>;
60
- fieldResolver?: Maybe<GraphQLFieldResolver<any, any>>;
61
- typeResolver?: Maybe<GraphQLTypeResolver<any, any>>;
62
- [key: string]: any;
63
- }
64
- export interface ExecutionResult {
65
- errors?: ReadonlyArray<GraphQLError>;
66
- data?: Record<string, any> | null;
67
- [key: string]: any;
68
- }
69
- export interface GraphQLError {
70
- message: string;
71
- locations?: ReadonlyArray<{
72
- line: number;
73
- column: number;
74
- }>;
75
- path?: ReadonlyArray<string | number>;
76
- [key: string]: any;
77
- }
78
- export interface GraphQLSchema {
79
- getQueryType(): GraphQLObjectType | undefined | null;
80
- getMutationType(): GraphQLObjectType | undefined | null;
81
- [key: string]: any;
82
- }
83
- export interface GraphQLObjectType {
84
- name: string;
85
- getFields(): {
86
- [key: string]: GraphQLField;
87
- };
88
- [key: string]: any;
89
- }
90
- export interface GraphQLField {
91
- name: string;
92
- type: GraphQLOutputType;
93
- resolve?: GraphQLFieldResolver<any, any>;
94
- [key: string]: any;
95
- }
96
- export type GraphQLOutputType = GraphQLNamedOutputType | GraphQLWrappingType;
97
- interface GraphQLNamedOutputType {
98
- name: string;
99
- [key: string]: any;
100
- }
101
- interface GraphQLWrappingType {
102
- ofType: GraphQLOutputType;
103
- [key: string]: any;
104
- }
105
- export interface GraphQLUnionType {
106
- name: string;
107
- getTypes(): ReadonlyArray<GraphQLObjectType>;
108
- [key: string]: any;
109
- }
110
- export type GraphQLType = GraphQLOutputType | GraphQLUnionType;
111
- export type GraphQLFieldResolver<TSource, TContext, TArgs = any> = (source: TSource, args: TArgs, context: TContext, info: GraphQLResolveInfo) => any;
112
- export type GraphQLTypeResolver<TSource, TContext> = (value: TSource, context: TContext, info: GraphQLResolveInfo, abstractType: any) => any;
113
- export interface GraphQLResolveInfo {
114
- fieldName: string;
115
- fieldNodes: ReadonlyArray<{
116
- kind: string;
117
- loc?: Location;
118
- [key: string]: any;
119
- }>;
120
- returnType: {
121
- toString(): string;
122
- [key: string]: any;
123
- };
124
- parentType: {
125
- name: string;
126
- [key: string]: any;
127
- };
128
- path: any;
129
- [key: string]: any;
130
- }
131
- export type ValidationRule = any;
132
- export interface TypeInfo {
133
- [key: string]: any;
134
- }
135
- export {};
1
+ export { DefinitionNode, DocumentNode, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLFieldResolver, GraphQLObjectType, GraphQLOutputType, GraphQLResolveInfo, GraphQLSchema, GraphQLType, GraphQLTypeResolver, GraphQLUnionType, Location, Maybe, OperationDefinitionNode, ParseOptions, PromiseOrValue, Source, Token, TypeInfo, ValidationRule, } from '@sentry/server-utils/orchestrion';
136
2
  //# sourceMappingURL=graphql-types.d.ts.map