@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.
- package/build/cjs/index.js +10 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/integrations/http.js +4 -7
- package/build/cjs/integrations/http.js.map +1 -1
- package/build/cjs/integrations/tracing/dataloader/index.js +7 -2
- package/build/cjs/integrations/tracing/dataloader/index.js.map +1 -1
- package/build/cjs/integrations/tracing/graphql/index.js +3 -2
- package/build/cjs/integrations/tracing/graphql/index.js.map +1 -1
- package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/graphql/vendored/utils.js +5 -6
- package/build/cjs/integrations/tracing/graphql/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/index.js +2 -2
- package/build/cjs/integrations/tracing/index.js.map +1 -1
- package/build/cjs/integrations/tracing/knex/index.js +6 -1
- package/build/cjs/integrations/tracing/knex/index.js.map +1 -1
- package/build/cjs/integrations/tracing/mongo/vendored/utils.js +1 -1
- package/build/cjs/integrations/tracing/mongo/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql2/index.js +3 -2
- package/build/cjs/integrations/tracing/mysql2/index.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js +1 -1
- package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/redis/index.js +3 -8
- package/build/cjs/integrations/tracing/redis/index.js.map +1 -1
- package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js +10 -8
- package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js.map +1 -1
- package/build/cjs/sdk/index.js +10 -11
- package/build/cjs/sdk/index.js.map +1 -1
- package/build/esm/index.js +2 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/integrations/http.js +5 -8
- package/build/esm/integrations/http.js.map +1 -1
- package/build/esm/integrations/tracing/dataloader/index.js +7 -2
- package/build/esm/integrations/tracing/dataloader/index.js.map +1 -1
- package/build/esm/integrations/tracing/graphql/index.js +4 -3
- package/build/esm/integrations/tracing/graphql/index.js.map +1 -1
- package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/graphql/vendored/utils.js +5 -6
- package/build/esm/integrations/tracing/graphql/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/index.js +1 -1
- package/build/esm/integrations/tracing/index.js.map +1 -1
- package/build/esm/integrations/tracing/knex/index.js +6 -1
- package/build/esm/integrations/tracing/knex/index.js.map +1 -1
- package/build/esm/integrations/tracing/mongo/vendored/utils.js +2 -2
- package/build/esm/integrations/tracing/mongo/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/mysql2/index.js +4 -3
- package/build/esm/integrations/tracing/mysql2/index.js.map +1 -1
- package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js +1 -1
- package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/redis/index.js +5 -10
- package/build/esm/integrations/tracing/redis/index.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js +11 -9
- package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js.map +1 -1
- package/build/esm/sdk/index.js +10 -11
- package/build/esm/sdk/index.js.map +1 -1
- package/build/types/index.d.ts +2 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/http.d.ts +2 -2
- package/build/types/integrations/http.d.ts.map +1 -1
- package/build/types/integrations/tracing/dataloader/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql/vendored/graphql-types.d.ts +1 -135
- package/build/types/integrations/tracing/graphql/vendored/graphql-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/knex/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongo/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql2/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/redis/index.d.ts.map +1 -1
- package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +2 -1
- package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts.map +1 -1
- package/build/types/sdk/index.d.ts.map +1 -1
- package/build/types-ts3.8/index.d.ts +2 -1
- package/build/types-ts3.8/integrations/http.d.ts +2 -2
- package/build/types-ts3.8/integrations/tracing/graphql/vendored/graphql-types.d.ts +1 -135
- package/build/types-ts3.8/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +2 -1
- package/package.json +6 -6
- package/build/cjs/integrations/tracing/prisma/index.js +0 -109
- package/build/cjs/integrations/tracing/prisma/index.js.map +0 -1
- package/build/cjs/integrations/tracing/prisma/vendored/active-tracing-helper.js +0 -145
- package/build/cjs/integrations/tracing/prisma/vendored/active-tracing-helper.js.map +0 -1
- package/build/cjs/integrations/tracing/prisma/vendored/constants.js +0 -14
- package/build/cjs/integrations/tracing/prisma/vendored/constants.js.map +0 -1
- package/build/cjs/integrations/tracing/prisma/vendored/global.js +0 -28
- package/build/cjs/integrations/tracing/prisma/vendored/global.js.map +0 -1
- package/build/cjs/integrations/tracing/prisma/vendored/instrumentation.js +0 -33
- package/build/cjs/integrations/tracing/prisma/vendored/instrumentation.js.map +0 -1
- package/build/esm/integrations/tracing/prisma/index.js +0 -106
- package/build/esm/integrations/tracing/prisma/index.js.map +0 -1
- package/build/esm/integrations/tracing/prisma/vendored/active-tracing-helper.js +0 -143
- package/build/esm/integrations/tracing/prisma/vendored/active-tracing-helper.js.map +0 -1
- package/build/esm/integrations/tracing/prisma/vendored/constants.js +0 -9
- package/build/esm/integrations/tracing/prisma/vendored/constants.js.map +0 -1
- package/build/esm/integrations/tracing/prisma/vendored/global.js +0 -24
- package/build/esm/integrations/tracing/prisma/vendored/global.js.map +0 -1
- package/build/esm/integrations/tracing/prisma/vendored/instrumentation.js +0 -31
- package/build/esm/integrations/tracing/prisma/vendored/instrumentation.js.map +0 -1
- package/build/types/integrations/tracing/prisma/index.d.ts +0 -34
- package/build/types/integrations/tracing/prisma/index.d.ts.map +0 -1
- package/build/types/integrations/tracing/prisma/vendored/active-tracing-helper.d.ts +0 -16
- package/build/types/integrations/tracing/prisma/vendored/active-tracing-helper.d.ts.map +0 -1
- package/build/types/integrations/tracing/prisma/vendored/constants.d.ts +0 -5
- package/build/types/integrations/tracing/prisma/vendored/constants.d.ts.map +0 -1
- package/build/types/integrations/tracing/prisma/vendored/global.d.ts +0 -5
- package/build/types/integrations/tracing/prisma/vendored/global.d.ts.map +0 -1
- package/build/types/integrations/tracing/prisma/vendored/instrumentation.d.ts +0 -15
- package/build/types/integrations/tracing/prisma/vendored/instrumentation.d.ts.map +0 -1
- package/build/types/integrations/tracing/prisma/vendored/types.d.ts +0 -34
- package/build/types/integrations/tracing/prisma/vendored/types.d.ts.map +0 -1
- package/build/types/integrations/tracing/prisma/vendored/v5-tracing-helper.d.ts +0 -38
- package/build/types/integrations/tracing/prisma/vendored/v5-tracing-helper.d.ts.map +0 -1
- package/build/types/integrations/tracing/prisma/vendored/v6-tracing-helper.d.ts +0 -31
- package/build/types/integrations/tracing/prisma/vendored/v6-tracing-helper.d.ts.map +0 -1
- package/build/types-ts3.8/integrations/tracing/prisma/index.d.ts +0 -34
- package/build/types-ts3.8/integrations/tracing/prisma/vendored/active-tracing-helper.d.ts +0 -16
- package/build/types-ts3.8/integrations/tracing/prisma/vendored/constants.d.ts +0 -5
- package/build/types-ts3.8/integrations/tracing/prisma/vendored/global.d.ts +0 -5
- package/build/types-ts3.8/integrations/tracing/prisma/vendored/instrumentation.d.ts +0 -15
- package/build/types-ts3.8/integrations/tracing/prisma/vendored/types.d.ts +0 -37
- package/build/types-ts3.8/integrations/tracing/prisma/vendored/v5-tracing-helper.d.ts +0 -44
- 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
|
|
15
|
-
//
|
|
16
|
-
// `
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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 //
|
|
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;;;;"}
|
package/build/esm/sdk/index.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
|
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,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,OAAO;AAAA,IACL,GAAG,wCAAA,EAAyC;AAAA;AAAA;AAAA;AAAA;AAAA,IAK5C,GAAI,eAAA,CAAgB,OAAO,CAAA,GAAI,8BAAA,KAAmC;AAAC,GACrE;AACF;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;AAMhC,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;AAGA,EAAA,IAAI,mBAAA,GAAsB,OAAA,CAAQ,mBAAA,IAAuB,0BAAA,CAA2B,OAAO,CAAA;AAa3F,EAAA,IAAI,+BAA+B,KAAA,CAAM,OAAA,CAAQ,mBAAmB,CAAA,IAAK,mBAAA,CAAoB,SAAS,CAAA,EAAG;AACvG,IAAA,MAAM,QAAA,GAAW,IAAI,GAAA,CAAI,2BAAA,CAA4B,4BAA4B,CAAA;AACjF,IAAA,mBAAA,GAAsB;AAAA,MACpB,GAAG,oBAAoB,MAAA,CAAO,CAAA,WAAA,KAAe,CAAC,QAAA,CAAS,GAAA,CAAI,WAAA,CAAY,IAAI,CAAC,CAAA;AAAA,MAC5E,GAAG,2BAAA,CAA4B;AAAA,KACjC;AAAA,EACF;AAEA,EAAA,MAAM,SAASC,MAAA,CAAa;AAAA,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;;;;"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -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 '
|
|
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,EA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B,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,8BAA8B,EAC9B,6BAA6B,EAC7B,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,OAAO,EACP,aAAa,EACb,UAAU,EACV,UAAU,EACV,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,GAAG,EACH,gBAAgB,EAChB,uBAAuB,EACvB,kCAAkC,EAClC,cAAc,GACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,MAAM,EACN,OAAO,EACP,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB,EAClB,8BAA8B,EAC9B,+BAA+B,EAE/B,cAAc,EAEd,8BAA8B,EAC9B,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,EAC7B,KAAK,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
|
|
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:
|
|
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;
|
|
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;AAcrG,OAAO,EAAqD,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAMtH,UAAU,WAAW;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;;OAKG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAE1C;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC;IAE3E;;;;;;;;;OASG;IACH,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ceRoot":"","sources":["../../../../../src/integrations/tracing/dataloader/index.ts"],"names":[],"mappings":"
|
|
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;
|
|
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
|
|
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":"
|
|
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,mBAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACR,KAAK,EACL,uBAAuB,EACvB,YAAY,EACZ,cAAc,EACd,MAAM,EACN,KAAK,EACL,QAAQ,EACR,cAAc,GACf,MAAM,kCAAkC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/graphql/vendored/utils.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EAKjB,QAAQ,EACR,KAAK,EAEN,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAKzD,OAAO,KAAK,EAA6B,qBAAqB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACtG,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,SAAS,CAAC;AAKlE,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,OAAO,CAAC,OAAO,CAE9D,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/graphql/vendored/utils.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EAKjB,QAAQ,EACR,KAAK,EAEN,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAKzD,OAAO,KAAK,EAA6B,qBAAqB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACtG,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,SAAS,CAAC;AAKlE,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,OAAO,CAAC,OAAO,CAE9D,CAAC;AAEF,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAK5F;AAkDD,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAKvD;AAED,wBAAgB,YAAY,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;
|
|
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;
|
|
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;
|
|
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;
|
|
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;;
|
|
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,
|
|
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,
|
|
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 '
|
|
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 {
|
|
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:
|
|
123
|
+
export declare const instrumentSentryHttp: typeof instrumentHttpOutgoingRequests & {
|
|
124
124
|
id: string;
|
|
125
125
|
};
|
|
126
126
|
/**
|
|
@@ -1,136 +1,2 @@
|
|
|
1
|
-
export
|
|
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
|