@sentry/node 8.36.0 → 8.37.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 (28) hide show
  1. package/build/cjs/integrations/anr/index.js +1 -1
  2. package/build/cjs/integrations/http/index.js.map +1 -1
  3. package/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
  4. package/build/cjs/integrations/modules.js +16 -0
  5. package/build/cjs/integrations/modules.js.map +1 -1
  6. package/build/cjs/integrations/tracing/prisma.js +1 -1
  7. package/build/cjs/integrations/tracing/prisma.js.map +1 -1
  8. package/build/esm/integrations/anr/index.js +1 -1
  9. package/build/esm/integrations/anr/worker-script.js +2 -2
  10. package/build/esm/integrations/http/index.js.map +1 -1
  11. package/build/esm/integrations/local-variables/local-variables-async.js +1 -1
  12. package/build/esm/integrations/local-variables/worker-script.js +2 -2
  13. package/build/esm/integrations/modules.js +16 -0
  14. package/build/esm/integrations/modules.js.map +1 -1
  15. package/build/esm/integrations/tracing/prisma.js +1 -1
  16. package/build/esm/integrations/tracing/prisma.js.map +1 -1
  17. package/build/esm/package.json +1 -1
  18. package/build/types/index.d.ts.map +1 -1
  19. package/build/types/integrations/http/index.d.ts +1 -1
  20. package/build/types/integrations/modules.d.ts +2 -0
  21. package/build/types/integrations/modules.d.ts.map +1 -1
  22. package/build/types/integrations/tracing/prisma.d.ts +1 -1
  23. package/build/types/types.d.ts +1 -1
  24. package/build/types-ts3.8/integrations/http/index.d.ts +1 -1
  25. package/build/types-ts3.8/integrations/modules.d.ts +2 -0
  26. package/build/types-ts3.8/integrations/tracing/prisma.d.ts +1 -1
  27. package/build/types-ts3.8/types.d.ts +1 -1
  28. package/package.json +9 -9
@@ -1,12 +1,26 @@
1
1
  import { existsSync, readFileSync } from 'node:fs';
2
2
  import { dirname, join } from 'node:path';
3
3
  import { defineIntegration } from '@sentry/core';
4
+ import { logger } from '@sentry/utils';
5
+ import { DEBUG_BUILD } from '../debug-build.js';
6
+ import { isCjs } from '../utils/commonjs.js';
4
7
 
5
8
  let moduleCache;
6
9
 
7
10
  const INTEGRATION_NAME = 'Modules';
8
11
 
9
12
  const _modulesIntegration = (() => {
13
+ // This integration only works in CJS contexts
14
+ if (!isCjs()) {
15
+ DEBUG_BUILD &&
16
+ logger.warn(
17
+ 'modulesIntegration only works in CommonJS (CJS) environments. Remove this integration if you are using ESM.',
18
+ );
19
+ return {
20
+ name: INTEGRATION_NAME,
21
+ };
22
+ }
23
+
10
24
  return {
11
25
  name: INTEGRATION_NAME,
12
26
  processEvent(event) {
@@ -22,6 +36,8 @@ const _modulesIntegration = (() => {
22
36
 
23
37
  /**
24
38
  * Add node modules / packages to the event.
39
+ *
40
+ * Only works in CommonJS (CJS) environments.
25
41
  */
26
42
  const modulesIntegration = defineIntegration(_modulesIntegration);
27
43
 
@@ -1 +1 @@
1
- {"version":3,"file":"modules.js","sources":["../../../src/integrations/modules.ts"],"sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { defineIntegration } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\n\nlet moduleCache: { [key: string]: string };\n\nconst INTEGRATION_NAME = 'Modules';\n\nconst _modulesIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n processEvent(event) {\n event.modules = {\n ...event.modules,\n ..._getModules(),\n };\n\n return event;\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Add node modules / packages to the event.\n */\nexport const modulesIntegration = defineIntegration(_modulesIntegration);\n\n/** Extract information about paths */\nfunction getPaths(): string[] {\n try {\n return require.cache ? Object.keys(require.cache as Record<string, unknown>) : [];\n } catch (e) {\n return [];\n }\n}\n\n/** Extract information about package.json modules */\nfunction collectModules(): {\n [name: string]: string;\n} {\n const mainPaths = (require.main && require.main.paths) || [];\n const paths = getPaths();\n const infos: {\n [name: string]: string;\n } = {};\n const seen: {\n [path: string]: boolean;\n } = {};\n\n paths.forEach(path => {\n let dir = path;\n\n /** Traverse directories upward in the search of package.json file */\n const updir = (): void | (() => void) => {\n const orig = dir;\n dir = dirname(orig);\n\n if (!dir || orig === dir || seen[orig]) {\n return undefined;\n }\n if (mainPaths.indexOf(dir) < 0) {\n return updir();\n }\n\n const pkgfile = join(orig, 'package.json');\n seen[orig] = true;\n\n if (!existsSync(pkgfile)) {\n return updir();\n }\n\n try {\n const info = JSON.parse(readFileSync(pkgfile, 'utf8')) as {\n name: string;\n version: string;\n };\n infos[info.name] = info.version;\n } catch (_oO) {\n // no-empty\n }\n };\n\n updir();\n });\n\n return infos;\n}\n\n/** Fetches the list of modules and the versions loaded by the entry file for your node.js app. */\nfunction _getModules(): { [key: string]: string } {\n if (!moduleCache) {\n moduleCache = collectModules();\n }\n return moduleCache;\n}\n"],"names":[],"mappings":";;;;AAKA,IAAI,WAAW;;AAEf,MAAM,gBAAA,GAAmB,SAAS;;AAElC,MAAM,mBAAoB,IAAG,MAAM;AACnC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,gBAAgB;AAC1B,IAAI,YAAY,CAAC,KAAK,EAAE;AACxB,MAAM,KAAK,CAAC,OAAA,GAAU;AACtB,QAAQ,GAAG,KAAK,CAAC,OAAO;AACxB,QAAQ,GAAG,WAAW,EAAE;AACxB,OAAO;;AAEP,MAAM,OAAO,KAAK;AAClB,KAAK;AACL,GAAG;AACH,CAAC,CAAE;;AAEH;AACA;AACA;MACa,kBAAmB,GAAE,iBAAiB,CAAC,mBAAmB;;AAEvE;AACA,SAAS,QAAQ,GAAa;AAC9B,EAAE,IAAI;AACN,IAAI,OAAO,OAAO,CAAC,KAAA,GAAQ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAA,EAAkC,GAAE,EAAE;AACrF,GAAI,CAAA,OAAO,CAAC,EAAE;AACd,IAAI,OAAO,EAAE;AACb;AACA;;AAEA;AACA,SAAS,cAAc;;AAEvB,CAAE;AACF,EAAE,MAAM,SAAU,GAAE,CAAC,OAAO,CAAC,IAAK,IAAG,OAAO,CAAC,IAAI,C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OAAO,WAAW;AACpB;;;;"}
1
+ {"version":3,"file":"modules.js","sources":["../../../src/integrations/modules.ts"],"sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { defineIntegration } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\nimport { logger } from '@sentry/utils';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { isCjs } from '../utils/commonjs';\n\nlet moduleCache: { [key: string]: string };\n\nconst INTEGRATION_NAME = 'Modules';\n\nconst _modulesIntegration = (() => {\n // This integration only works in CJS contexts\n if (!isCjs()) {\n DEBUG_BUILD &&\n logger.warn(\n 'modulesIntegration only works in CommonJS (CJS) environments. Remove this integration if you are using ESM.',\n );\n return {\n name: INTEGRATION_NAME,\n };\n }\n\n return {\n name: INTEGRATION_NAME,\n processEvent(event) {\n event.modules = {\n ...event.modules,\n ..._getModules(),\n };\n\n return event;\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Add node modules / packages to the event.\n *\n * Only works in CommonJS (CJS) environments.\n */\nexport const modulesIntegration = defineIntegration(_modulesIntegration);\n\n/** Extract information about paths */\nfunction getPaths(): string[] {\n try {\n return require.cache ? Object.keys(require.cache as Record<string, unknown>) : [];\n } catch (e) {\n return [];\n }\n}\n\n/** Extract information about package.json modules */\nfunction collectModules(): {\n [name: string]: string;\n} {\n const mainPaths = (require.main && require.main.paths) || [];\n const paths = getPaths();\n const infos: {\n [name: string]: string;\n } = {};\n const seen: {\n [path: string]: boolean;\n } = {};\n\n paths.forEach(path => {\n let dir = path;\n\n /** Traverse directories upward in the search of package.json file */\n const updir = (): void | (() => void) => {\n const orig = dir;\n dir = dirname(orig);\n\n if (!dir || orig === dir || seen[orig]) {\n return undefined;\n }\n if (mainPaths.indexOf(dir) < 0) {\n return updir();\n }\n\n const pkgfile = join(orig, 'package.json');\n seen[orig] = true;\n\n if (!existsSync(pkgfile)) {\n return updir();\n }\n\n try {\n const info = JSON.parse(readFileSync(pkgfile, 'utf8')) as {\n name: string;\n version: string;\n };\n infos[info.name] = info.version;\n } catch (_oO) {\n // no-empty\n }\n };\n\n updir();\n });\n\n return infos;\n}\n\n/** Fetches the list of modules and the versions loaded by the entry file for your node.js app. */\nfunction _getModules(): { [key: string]: string } {\n if (!moduleCache) {\n moduleCache = collectModules();\n }\n return moduleCache;\n}\n"],"names":[],"mappings":";;;;;;;AAQA,IAAI,WAAW;;AAEf,MAAM,gBAAA,GAAmB,SAAS;;AAElC,MAAM,mBAAoB,IAAG,MAAM;AACnC;AACA,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE;AAChB,IAAI,WAAY;AAChB,MAAM,MAAM,CAAC,IAAI;AACjB,QAAQ,6GAA6G;AACrH,OAAO;AACP,IAAI,OAAO;AACX,MAAM,IAAI,EAAE,gBAAgB;AAC5B,KAAK;AACL;;AAEA,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,gBAAgB;AAC1B,IAAI,YAAY,CAAC,KAAK,EAAE;AACxB,MAAM,KAAK,CAAC,OAAA,GAAU;AACtB,QAAQ,GAAG,KAAK,CAAC,OAAO;AACxB,QAAQ,GAAG,WAAW,EAAE;AACxB,OAAO;;AAEP,MAAM,OAAO,KAAK;AAClB,KAAK;AACL,GAAG;AACH,CAAC,CAAE;;AAEH;AACA;AACA;AACA;AACA;MACa,kBAAmB,GAAE,iBAAiB,CAAC,mBAAmB;;AAEvE;AACA,SAAS,QAAQ,GAAa;AAC9B,EAAE,IAAI;AACN,IAAI,OAAO,OAAO,CAAC,KAAA,GAAQ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAA,EAAkC,GAAE,EAAE;AACrF,GAAI,CAAA,OAAO,CAAC,EAAE;AACd,IAAI,OAAO,EAAE;AACb;AACA;;AAEA;AACA,SAAS,cAAc;;AAEvB,CAAE;AACF,EAAE,MAAM,SAAU,GAAE,CAAC,OAAO,CAAC,IAAK,IAAG,OAAO,CAAC,IAAI,CAAC,KAAK,KAAK,EAAE;AAC9D,EAAE,MA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7 @@ const _prismaIntegration = (() => {
40
40
  * Prisma integration
41
41
  *
42
42
  * Capture tracing data for prisma.
43
- * Note: This requieres to set:
43
+ * Note: This requires to set:
44
44
  * previewFeatures = ["tracing"]
45
45
  * For the prisma client.
46
46
  * See https://www.prisma.io/docs/concepts/components/prisma-client/opentelemetry-tracing for more details.
@@ -1 +1 @@
1
- {"version":3,"file":"prisma.js","sources":["../../../../src/integrations/tracing/prisma.ts"],"sourcesContent":["// When importing CJS modules into an ESM module, we cannot import the named exports directly.\nimport * as prismaInstrumentation from '@prisma/instrumentation';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, defineIntegration, spanToJSON } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\nimport { generateInstrumentOnce } from '../../otel/instrument';\n\nconst INTEGRATION_NAME = 'Prisma';\n\nexport const instrumentPrisma = generateInstrumentOnce(INTEGRATION_NAME, () => {\n const EsmInteropPrismaInstrumentation: typeof prismaInstrumentation.PrismaInstrumentation =\n // @ts-expect-error We need to do the following for interop reasons\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n prismaInstrumentation.default?.PrismaInstrumentation || prismaInstrumentation.PrismaInstrumentation;\n\n return new EsmInteropPrismaInstrumentation({});\n});\n\nconst _prismaIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n setupOnce() {\n instrumentPrisma();\n },\n\n setup(client) {\n client.on('spanStart', span => {\n const spanJSON = spanToJSON(span);\n if (spanJSON.description?.startsWith('prisma:')) {\n span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.db.otel.prisma');\n }\n\n if (spanJSON.description === 'prisma:engine:db_query') {\n span.setAttribute('db.system', 'prisma');\n }\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Prisma integration\n *\n * Capture tracing data for prisma.\n * Note: This requieres to set:\n * previewFeatures = [\"tracing\"]\n * For the prisma client.\n * See https://www.prisma.io/docs/concepts/components/prisma-client/opentelemetry-tracing for more details.\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AA,CAAA,CAAA,CAAA,CAAA;;"}
1
+ {"version":3,"file":"prisma.js","sources":["../../../../src/integrations/tracing/prisma.ts"],"sourcesContent":["// When importing CJS modules into an ESM module, we cannot import the named exports directly.\nimport * as prismaInstrumentation from '@prisma/instrumentation';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, defineIntegration, spanToJSON } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\nimport { generateInstrumentOnce } from '../../otel/instrument';\n\nconst INTEGRATION_NAME = 'Prisma';\n\nexport const instrumentPrisma = generateInstrumentOnce(INTEGRATION_NAME, () => {\n const EsmInteropPrismaInstrumentation: typeof prismaInstrumentation.PrismaInstrumentation =\n // @ts-expect-error We need to do the following for interop reasons\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n prismaInstrumentation.default?.PrismaInstrumentation || prismaInstrumentation.PrismaInstrumentation;\n\n return new EsmInteropPrismaInstrumentation({});\n});\n\nconst _prismaIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n setupOnce() {\n instrumentPrisma();\n },\n\n setup(client) {\n client.on('spanStart', span => {\n const spanJSON = spanToJSON(span);\n if (spanJSON.description?.startsWith('prisma:')) {\n span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.db.otel.prisma');\n }\n\n if (spanJSON.description === 'prisma:engine:db_query') {\n span.setAttribute('db.system', 'prisma');\n }\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Prisma integration\n *\n * Capture tracing data for prisma.\n * Note: This requires to set:\n * previewFeatures = [\"tracing\"]\n * For the prisma client.\n * See https://www.prisma.io/docs/concepts/components/prisma-client/opentelemetry-tracing for more details.\n */\nexport const prismaIntegration = defineIntegration(_prismaIntegration);\n"],"names":[],"mappings":";;;;;AAMA,CAAM,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,I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,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;CACA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;CACA,CAAA;MACa,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAE,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;"}
@@ -1 +1 @@
1
- {"type":"module","version":"8.36.0","sideEffects":false}
1
+ {"type":"module","version":"8.37.0","sideEffects":false}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":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OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,OAAO,EACP,aAAa,EACb,UAAU,EACV,UAAU,EACV,MAAM,EACN,IAAI,EACJ,IAAI,GACL,MAAM,eAAe,CAAC"}
@@ -51,7 +51,7 @@ interface HttpOptions {
51
51
  responseHook?: (span: Span, response: HTTPModuleRequestIncomingMessage | ServerResponse) => void;
52
52
  applyCustomAttributesOnSpan?: (span: Span, request: ClientRequest | HTTPModuleRequestIncomingMessage, response: HTTPModuleRequestIncomingMessage | ServerResponse) => void;
53
53
  /**
54
- * You can pass any configuration through to the underlying instrumention.
54
+ * You can pass any configuration through to the underlying instrumentation.
55
55
  * Note that there are no semver guarantees for this!
56
56
  */
57
57
  _experimentalConfig?: ConstructorParameters<typeof HttpInstrumentation>[0];
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * Add node modules / packages to the event.
3
+ *
4
+ * Only works in CommonJS (CJS) environments.
3
5
  */
4
6
  export declare const modulesIntegration: () => import("@sentry/types").Integration;
5
7
  //# sourceMappingURL=modules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../src/integrations/modules.ts"],"names":[],"mappings":"AAuBA;;GAEG;AACH,eAAO,MAAM,kBAAkB,2CAAyC,CAAC"}
1
+ {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../src/integrations/modules.ts"],"names":[],"mappings":"AAqCA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,2CAAyC,CAAC"}
@@ -5,7 +5,7 @@ export declare const instrumentPrisma: ((options?: unknown) => void) & {
5
5
  * Prisma integration
6
6
  *
7
7
  * Capture tracing data for prisma.
8
- * Note: This requieres to set:
8
+ * Note: This requires to set:
9
9
  * previewFeatures = ["tracing"]
10
10
  * For the prisma client.
11
11
  * See https://www.prisma.io/docs/concepts/components/prisma-client/opentelemetry-tracing for more details.
@@ -142,7 +142,7 @@ export interface CurrentScopes {
142
142
  * so in these cases we type this as `AbstractSpan` which could be either a regular `Span` or a `ReadableSpan`.
143
143
  * You'll have to make sur to check revelant fields before accessing them.
144
144
  *
145
- * Note that technically, the `Span` exported from `@opentelemwetry/sdk-trace-base` matches this,
145
+ * Note that technically, the `Span` exported from `@opentelemetry/sdk-trace-base` matches this,
146
146
  * but we cannot be 100% sure that we are actually getting such a span, so this type is more defensive.
147
147
  */
148
148
  export type AbstractSpan = WriteableSpan | ReadableSpan | Span;
@@ -51,7 +51,7 @@ interface HttpOptions {
51
51
  responseHook?: (span: Span, response: HTTPModuleRequestIncomingMessage | ServerResponse) => void;
52
52
  applyCustomAttributesOnSpan?: (span: Span, request: ClientRequest | HTTPModuleRequestIncomingMessage, response: HTTPModuleRequestIncomingMessage | ServerResponse) => void;
53
53
  /**
54
- * You can pass any configuration through to the underlying instrumention.
54
+ * You can pass any configuration through to the underlying instrumentation.
55
55
  * Note that there are no semver guarantees for this!
56
56
  */
57
57
  _experimentalConfig?: ConstructorParameters<typeof HttpInstrumentation>[0];
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * Add node modules / packages to the event.
3
+ *
4
+ * Only works in CommonJS (CJS) environments.
3
5
  */
4
6
  export declare const modulesIntegration: () => import("@sentry/types").Integration;
5
7
  //# sourceMappingURL=modules.d.ts.map
@@ -5,7 +5,7 @@ export declare const instrumentPrisma: ((options?: unknown) => void) & {
5
5
  * Prisma integration
6
6
  *
7
7
  * Capture tracing data for prisma.
8
- * Note: This requieres to set:
8
+ * Note: This requires to set:
9
9
  * previewFeatures = ["tracing"]
10
10
  * For the prisma client.
11
11
  * See https://www.prisma.io/docs/concepts/components/prisma-client/opentelemetry-tracing for more details.
@@ -142,7 +142,7 @@ export interface CurrentScopes {
142
142
  * so in these cases we type this as `AbstractSpan` which could be either a regular `Span` or a `ReadableSpan`.
143
143
  * You'll have to make sur to check revelant fields before accessing them.
144
144
  *
145
- * Note that technically, the `Span` exported from `@opentelemwetry/sdk-trace-base` matches this,
145
+ * Note that technically, the `Span` exported from `@opentelemetry/sdk-trace-base` matches this,
146
146
  * but we cannot be 100% sure that we are actually getting such a span, so this type is more defensive.
147
147
  */
148
148
  export type AbstractSpan = WriteableSpan | ReadableSpan | Span;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/node",
3
- "version": "8.36.0",
3
+ "version": "8.37.0",
4
4
  "description": "Sentry Node SDK using OpenTelemetry for performance instrumentation",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node",
@@ -68,22 +68,22 @@
68
68
  "@opentelemetry/api": "^1.9.0",
69
69
  "@opentelemetry/context-async-hooks": "^1.25.1",
70
70
  "@opentelemetry/core": "^1.25.1",
71
- "@opentelemetry/instrumentation": "^0.53.0",
71
+ "@opentelemetry/instrumentation": "^0.54.0",
72
72
  "@opentelemetry/instrumentation-amqplib": "^0.42.0",
73
73
  "@opentelemetry/instrumentation-connect": "0.40.0",
74
74
  "@opentelemetry/instrumentation-dataloader": "0.12.0",
75
75
  "@opentelemetry/instrumentation-express": "0.44.0",
76
- "@opentelemetry/instrumentation-fastify": "0.40.0",
76
+ "@opentelemetry/instrumentation-fastify": "0.41.0",
77
77
  "@opentelemetry/instrumentation-fs": "0.16.0",
78
78
  "@opentelemetry/instrumentation-generic-pool": "0.39.0",
79
- "@opentelemetry/instrumentation-graphql": "0.43.0",
79
+ "@opentelemetry/instrumentation-graphql": "0.44.0",
80
80
  "@opentelemetry/instrumentation-hapi": "0.41.0",
81
81
  "@opentelemetry/instrumentation-http": "0.53.0",
82
82
  "@opentelemetry/instrumentation-ioredis": "0.43.0",
83
83
  "@opentelemetry/instrumentation-kafkajs": "0.4.0",
84
84
  "@opentelemetry/instrumentation-koa": "0.43.0",
85
85
  "@opentelemetry/instrumentation-lru-memoizer": "0.40.0",
86
- "@opentelemetry/instrumentation-mongodb": "0.47.0",
86
+ "@opentelemetry/instrumentation-mongodb": "0.48.0",
87
87
  "@opentelemetry/instrumentation-mongoose": "0.42.0",
88
88
  "@opentelemetry/instrumentation-mysql": "0.41.0",
89
89
  "@opentelemetry/instrumentation-mysql2": "0.41.0",
@@ -95,10 +95,10 @@
95
95
  "@opentelemetry/sdk-trace-base": "^1.26.0",
96
96
  "@opentelemetry/semantic-conventions": "^1.27.0",
97
97
  "@prisma/instrumentation": "5.19.1",
98
- "@sentry/core": "8.36.0",
99
- "@sentry/opentelemetry": "8.36.0",
100
- "@sentry/types": "8.36.0",
101
- "@sentry/utils": "8.36.0",
98
+ "@sentry/core": "8.37.0",
99
+ "@sentry/opentelemetry": "8.37.0",
100
+ "@sentry/types": "8.37.0",
101
+ "@sentry/utils": "8.37.0",
102
102
  "import-in-the-middle": "^1.11.2"
103
103
  },
104
104
  "devDependencies": {