@prisma/instrumentation 6.5.0-dev.8 → 6.5.0-dev.81

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/README.md CHANGED
@@ -38,7 +38,7 @@ Exporting traces to [Jaeger Tracing](https://jaegertracing.io).
38
38
 
39
39
  ```ts
40
40
  import { context } from '@opentelemetry/api'
41
- import { AsyncHooksContextManager } from '@opentelemetry/context-async-hooks'
41
+ import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks'
42
42
  import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http'
43
43
  import { registerInstrumentations } from '@opentelemetry/instrumentation'
44
44
  import { Resource } from '@opentelemetry/resources'
@@ -48,7 +48,7 @@ import { PrismaInstrumentation } from '@prisma/instrumentation'
48
48
 
49
49
  import { PrismaClient } from '.prisma/client'
50
50
 
51
- const contextManager = new AsyncHooksContextManager().enable()
51
+ const contextManager = new AsyncLocalStorageContextManager().enable()
52
52
 
53
53
  context.setGlobalContextManager(contextManager)
54
54
 
@@ -3,11 +3,13 @@ import { EngineSpan, ExtendedSpanOptions, SpanCallback, TracingHelper } from '@p
3
3
  type Options = {
4
4
  traceMiddleware: boolean;
5
5
  tracerProvider: TracerProvider;
6
+ ignoreSpanTypes: (string | RegExp)[];
6
7
  };
7
8
  export declare class ActiveTracingHelper implements TracingHelper {
8
- traceMiddleware: boolean;
9
- tracerProvider: TracerProvider;
10
- constructor({ traceMiddleware, tracerProvider }: Options);
9
+ private traceMiddleware;
10
+ private tracerProvider;
11
+ private ignoreSpanTypes;
12
+ constructor({ traceMiddleware, tracerProvider, ignoreSpanTypes }: Options);
11
13
  isEnabled(): boolean;
12
14
  getTraceParent(context?: Context | undefined): string;
13
15
  dispatchEngineSpans(spans: EngineSpan[]): void;
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var ActiveTracingHelper_exports = {};
20
20
  __export(ActiveTracingHelper_exports, {
21
- ActiveTracingHelper: () => import_chunk_TUF6OX4N.ActiveTracingHelper
21
+ ActiveTracingHelper: () => import_chunk_J2R3KSH3.ActiveTracingHelper
22
22
  });
23
23
  module.exports = __toCommonJS(ActiveTracingHelper_exports);
24
- var import_chunk_TUF6OX4N = require("./chunk-TUF6OX4N.js");
25
- var import_chunk_FTA5RKYX = require("./chunk-FTA5RKYX.js");
24
+ var import_chunk_J2R3KSH3 = require("./chunk-J2R3KSH3.js");
25
+ var import_chunk_TPXO4NMU = require("./chunk-TPXO4NMU.js");
@@ -2,6 +2,7 @@ import { TracerProvider } from '@opentelemetry/api';
2
2
  import { InstrumentationBase, InstrumentationConfig, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
3
3
  export interface PrismaInstrumentationConfig {
4
4
  middleware?: boolean;
5
+ ignoreSpanTypes?: (string | RegExp)[];
5
6
  }
6
7
  type Config = PrismaInstrumentationConfig & InstrumentationConfig;
7
8
  export declare class PrismaInstrumentation extends InstrumentationBase {
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var PrismaInstrumentation_exports = {};
20
20
  __export(PrismaInstrumentation_exports, {
21
- PrismaInstrumentation: () => import_chunk_MW5MTNC3.PrismaInstrumentation
21
+ PrismaInstrumentation: () => import_chunk_JLEVKP2T.PrismaInstrumentation
22
22
  });
23
23
  module.exports = __toCommonJS(PrismaInstrumentation_exports);
24
- var import_chunk_MW5MTNC3 = require("./chunk-MW5MTNC3.js");
25
- var import_chunk_TUF6OX4N = require("./chunk-TUF6OX4N.js");
26
- var import_chunk_4T34PUSB = require("./chunk-4T34PUSB.js");
27
- var import_chunk_FTA5RKYX = require("./chunk-FTA5RKYX.js");
24
+ var import_chunk_JLEVKP2T = require("./chunk-JLEVKP2T.js");
25
+ var import_chunk_J2R3KSH3 = require("./chunk-J2R3KSH3.js");
26
+ var import_chunk_7QP4PH73 = require("./chunk-7QP4PH73.js");
27
+ var import_chunk_TPXO4NMU = require("./chunk-TPXO4NMU.js");
@@ -16,21 +16,21 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_4T34PUSB_exports = {};
20
- __export(chunk_4T34PUSB_exports, {
19
+ var chunk_7QP4PH73_exports = {};
20
+ __export(chunk_7QP4PH73_exports, {
21
21
  GLOBAL_INSTRUMENTATION_ACCESSOR_KEY: () => GLOBAL_INSTRUMENTATION_ACCESSOR_KEY,
22
22
  GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY: () => GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY,
23
23
  MODULE_NAME: () => MODULE_NAME,
24
24
  NAME: () => NAME,
25
25
  VERSION: () => VERSION
26
26
  });
27
- module.exports = __toCommonJS(chunk_4T34PUSB_exports);
28
- var import_chunk_FTA5RKYX = require("./chunk-FTA5RKYX.js");
29
- var require_package = (0, import_chunk_FTA5RKYX.__commonJS)({
27
+ module.exports = __toCommonJS(chunk_7QP4PH73_exports);
28
+ var import_chunk_TPXO4NMU = require("./chunk-TPXO4NMU.js");
29
+ var require_package = (0, import_chunk_TPXO4NMU.__commonJS)({
30
30
  "package.json"(exports, module2) {
31
31
  module2.exports = {
32
32
  name: "@prisma/instrumentation",
33
- version: "6.5.0-dev.8",
33
+ version: "6.5.0-dev.81",
34
34
  description: "OpenTelemetry compliant instrumentation for Prisma Client",
35
35
  main: "dist/index.js",
36
36
  types: "dist/index.d.ts",
@@ -44,9 +44,9 @@ var require_package = (0, import_chunk_FTA5RKYX.__commonJS)({
44
44
  bugs: "https://github.com/prisma/prisma/issues",
45
45
  devDependencies: {
46
46
  "@prisma/internals": "workspace:*",
47
- "@swc/core": "1.10.11",
47
+ "@swc/core": "1.11.5",
48
48
  "@types/jest": "29.5.14",
49
- "@types/node": "18.19.31",
49
+ "@types/node": "18.19.76",
50
50
  "@opentelemetry/api": "1.9.0",
51
51
  jest: "29.7.0",
52
52
  "jest-junit": "16.0.0",
@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_I7Y24QPX_exports = {};
20
- __export(chunk_I7Y24QPX_exports, {
19
+ var chunk_CC5XCM4T_exports = {};
20
+ __export(chunk_CC5XCM4T_exports, {
21
21
  GLOBAL_INSTRUMENTATION_ACCESSOR_KEY: () => GLOBAL_INSTRUMENTATION_ACCESSOR_KEY,
22
22
  GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY: () => GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY,
23
23
  MODULE_NAME: () => MODULE_NAME,
24
24
  NAME: () => NAME,
25
25
  VERSION: () => VERSION
26
26
  });
27
- module.exports = __toCommonJS(chunk_I7Y24QPX_exports);
28
- var import_chunk_FTA5RKYX = require("./chunk-FTA5RKYX.js");
29
- var require_package = (0, import_chunk_FTA5RKYX.__commonJS)({
27
+ module.exports = __toCommonJS(chunk_CC5XCM4T_exports);
28
+ var import_chunk_TPXO4NMU = require("./chunk-TPXO4NMU.js");
29
+ var require_package = (0, import_chunk_TPXO4NMU.__commonJS)({
30
30
  "package.json"(exports, module2) {
31
31
  module2.exports = {
32
32
  name: "@prisma/instrumentation",
@@ -44,9 +44,9 @@ var require_package = (0, import_chunk_FTA5RKYX.__commonJS)({
44
44
  bugs: "https://github.com/prisma/prisma/issues",
45
45
  devDependencies: {
46
46
  "@prisma/internals": "workspace:*",
47
- "@swc/core": "1.10.11",
47
+ "@swc/core": "1.11.5",
48
48
  "@types/jest": "29.5.14",
49
- "@types/node": "18.19.31",
49
+ "@types/node": "18.19.76",
50
50
  "@opentelemetry/api": "1.9.0",
51
51
  jest: "29.7.0",
52
52
  "jest-junit": "16.0.0",
@@ -16,11 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_TUF6OX4N_exports = {};
20
- __export(chunk_TUF6OX4N_exports, {
19
+ var chunk_J2R3KSH3_exports = {};
20
+ __export(chunk_J2R3KSH3_exports, {
21
21
  ActiveTracingHelper: () => ActiveTracingHelper
22
22
  });
23
- module.exports = __toCommonJS(chunk_TUF6OX4N_exports);
23
+ module.exports = __toCommonJS(chunk_J2R3KSH3_exports);
24
+ var import_chunk_TPXO4NMU = require("./chunk-TPXO4NMU.js");
24
25
  var import_api = require("@opentelemetry/api");
25
26
  var showAllTraces = process.env.PRISMA_SHOW_ALL_TRACES === "true";
26
27
  var nonSampledTraceParent = `00-10-10-00`;
@@ -34,9 +35,13 @@ function engineSpanKindToOtelSpanKind(engineSpanKind) {
34
35
  }
35
36
  }
36
37
  var ActiveTracingHelper = class {
37
- constructor({ traceMiddleware, tracerProvider }) {
38
+ constructor({ traceMiddleware, tracerProvider, ignoreSpanTypes }) {
39
+ (0, import_chunk_TPXO4NMU.__publicField)(this, "traceMiddleware");
40
+ (0, import_chunk_TPXO4NMU.__publicField)(this, "tracerProvider");
41
+ (0, import_chunk_TPXO4NMU.__publicField)(this, "ignoreSpanTypes");
38
42
  this.traceMiddleware = traceMiddleware;
39
43
  this.tracerProvider = tracerProvider;
44
+ this.ignoreSpanTypes = ignoreSpanTypes;
40
45
  }
41
46
  isEnabled() {
42
47
  return true;
@@ -53,7 +58,7 @@ var ActiveTracingHelper = class {
53
58
  const linkIds = /* @__PURE__ */ new Map();
54
59
  const roots = spans.filter((span) => span.parentId === null);
55
60
  for (const root of roots) {
56
- dispatchEngineSpan(tracer, root, spans, linkIds);
61
+ dispatchEngineSpan(tracer, root, spans, linkIds, this.ignoreSpanTypes);
57
62
  }
58
63
  }
59
64
  getActiveContext() {
@@ -72,6 +77,9 @@ var ActiveTracingHelper = class {
72
77
  const tracer = this.tracerProvider.getTracer("prisma");
73
78
  const context = options.context ?? this.getActiveContext();
74
79
  const name = `prisma:client:${options.name}`;
80
+ if (shouldIgnoreSpan(name, this.ignoreSpanTypes)) {
81
+ return callback();
82
+ }
75
83
  if (options.active === false) {
76
84
  const span = tracer.startSpan(name, options, context);
77
85
  return endSpan(span, callback(span, context));
@@ -79,7 +87,8 @@ var ActiveTracingHelper = class {
79
87
  return tracer.startActiveSpan(name, options, (span) => endSpan(span, callback(span, context)));
80
88
  }
81
89
  };
82
- function dispatchEngineSpan(tracer, engineSpan, allSpans, linkIds) {
90
+ function dispatchEngineSpan(tracer, engineSpan, allSpans, linkIds, ignoreSpanTypes) {
91
+ if (shouldIgnoreSpan(engineSpan.name, ignoreSpanTypes)) return;
83
92
  const spanOptions = {
84
93
  attributes: engineSpan.attributes,
85
94
  kind: engineSpanKindToOtelSpanKind(engineSpan.kind),
@@ -106,7 +115,7 @@ function dispatchEngineSpan(tracer, engineSpan, allSpans, linkIds) {
106
115
  }
107
116
  const children = allSpans.filter((s) => s.parentId === engineSpan.id);
108
117
  for (const child of children) {
109
- dispatchEngineSpan(tracer, child, allSpans, linkIds);
118
+ dispatchEngineSpan(tracer, child, allSpans, linkIds, ignoreSpanTypes);
110
119
  }
111
120
  span.end(engineSpan.endTime);
112
121
  });
@@ -130,3 +139,8 @@ function endSpan(span, result) {
130
139
  function isPromiseLike(value) {
131
140
  return value != null && typeof value["then"] === "function";
132
141
  }
142
+ function shouldIgnoreSpan(spanName, ignoreSpanTypes) {
143
+ return ignoreSpanTypes.some(
144
+ (pattern) => typeof pattern === "string" ? pattern === spanName : pattern.test(spanName)
145
+ );
146
+ }
@@ -16,42 +16,45 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_3AU7JXZT_exports = {};
20
- __export(chunk_3AU7JXZT_exports, {
19
+ var chunk_JLEVKP2T_exports = {};
20
+ __export(chunk_JLEVKP2T_exports, {
21
21
  PrismaInstrumentation: () => PrismaInstrumentation
22
22
  });
23
- module.exports = __toCommonJS(chunk_3AU7JXZT_exports);
24
- var import_chunk_TUF6OX4N = require("./chunk-TUF6OX4N.js");
25
- var import_chunk_I7Y24QPX = require("./chunk-I7Y24QPX.js");
23
+ module.exports = __toCommonJS(chunk_JLEVKP2T_exports);
24
+ var import_chunk_J2R3KSH3 = require("./chunk-J2R3KSH3.js");
25
+ var import_chunk_7QP4PH73 = require("./chunk-7QP4PH73.js");
26
+ var import_chunk_TPXO4NMU = require("./chunk-TPXO4NMU.js");
26
27
  var import_api = require("@opentelemetry/api");
27
28
  var import_instrumentation = require("@opentelemetry/instrumentation");
28
29
  var PrismaInstrumentation = class extends import_instrumentation.InstrumentationBase {
29
30
  constructor(config = {}) {
30
- super(import_chunk_I7Y24QPX.NAME, import_chunk_I7Y24QPX.VERSION, config);
31
+ super(import_chunk_7QP4PH73.NAME, import_chunk_7QP4PH73.VERSION, config);
32
+ (0, import_chunk_TPXO4NMU.__publicField)(this, "tracerProvider");
31
33
  }
32
34
  setTracerProvider(tracerProvider) {
33
35
  this.tracerProvider = tracerProvider;
34
36
  }
35
37
  init() {
36
- const module2 = new import_instrumentation.InstrumentationNodeModuleDefinition(import_chunk_I7Y24QPX.MODULE_NAME, [import_chunk_I7Y24QPX.VERSION]);
38
+ const module2 = new import_instrumentation.InstrumentationNodeModuleDefinition(import_chunk_7QP4PH73.MODULE_NAME, [import_chunk_7QP4PH73.VERSION]);
37
39
  return [module2];
38
40
  }
39
41
  enable() {
40
42
  const config = this._config;
41
43
  const globalValue = {
42
- helper: new import_chunk_TUF6OX4N.ActiveTracingHelper({
44
+ helper: new import_chunk_J2R3KSH3.ActiveTracingHelper({
43
45
  traceMiddleware: config.middleware ?? false,
44
- tracerProvider: this.tracerProvider ?? import_api.trace.getTracerProvider()
46
+ tracerProvider: this.tracerProvider ?? import_api.trace.getTracerProvider(),
47
+ ignoreSpanTypes: config.ignoreSpanTypes ?? []
45
48
  })
46
49
  };
47
- global[import_chunk_I7Y24QPX.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY] = globalValue;
48
- global[import_chunk_I7Y24QPX.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY] = globalValue;
50
+ global[import_chunk_7QP4PH73.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY] = globalValue;
51
+ global[import_chunk_7QP4PH73.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY] = globalValue;
49
52
  }
50
53
  disable() {
51
- delete global[import_chunk_I7Y24QPX.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY];
52
- delete global[import_chunk_I7Y24QPX.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY];
54
+ delete global[import_chunk_7QP4PH73.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY];
55
+ delete global[import_chunk_7QP4PH73.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY];
53
56
  }
54
57
  isEnabled() {
55
- return Boolean(global[import_chunk_I7Y24QPX.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY]);
58
+ return Boolean(global[import_chunk_7QP4PH73.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY]);
56
59
  }
57
60
  };
@@ -16,42 +16,45 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_MW5MTNC3_exports = {};
20
- __export(chunk_MW5MTNC3_exports, {
19
+ var chunk_RTBISLBD_exports = {};
20
+ __export(chunk_RTBISLBD_exports, {
21
21
  PrismaInstrumentation: () => PrismaInstrumentation
22
22
  });
23
- module.exports = __toCommonJS(chunk_MW5MTNC3_exports);
24
- var import_chunk_TUF6OX4N = require("./chunk-TUF6OX4N.js");
25
- var import_chunk_4T34PUSB = require("./chunk-4T34PUSB.js");
23
+ module.exports = __toCommonJS(chunk_RTBISLBD_exports);
24
+ var import_chunk_J2R3KSH3 = require("./chunk-J2R3KSH3.js");
25
+ var import_chunk_CC5XCM4T = require("./chunk-CC5XCM4T.js");
26
+ var import_chunk_TPXO4NMU = require("./chunk-TPXO4NMU.js");
26
27
  var import_api = require("@opentelemetry/api");
27
28
  var import_instrumentation = require("@opentelemetry/instrumentation");
28
29
  var PrismaInstrumentation = class extends import_instrumentation.InstrumentationBase {
29
30
  constructor(config = {}) {
30
- super(import_chunk_4T34PUSB.NAME, import_chunk_4T34PUSB.VERSION, config);
31
+ super(import_chunk_CC5XCM4T.NAME, import_chunk_CC5XCM4T.VERSION, config);
32
+ (0, import_chunk_TPXO4NMU.__publicField)(this, "tracerProvider");
31
33
  }
32
34
  setTracerProvider(tracerProvider) {
33
35
  this.tracerProvider = tracerProvider;
34
36
  }
35
37
  init() {
36
- const module2 = new import_instrumentation.InstrumentationNodeModuleDefinition(import_chunk_4T34PUSB.MODULE_NAME, [import_chunk_4T34PUSB.VERSION]);
38
+ const module2 = new import_instrumentation.InstrumentationNodeModuleDefinition(import_chunk_CC5XCM4T.MODULE_NAME, [import_chunk_CC5XCM4T.VERSION]);
37
39
  return [module2];
38
40
  }
39
41
  enable() {
40
42
  const config = this._config;
41
43
  const globalValue = {
42
- helper: new import_chunk_TUF6OX4N.ActiveTracingHelper({
44
+ helper: new import_chunk_J2R3KSH3.ActiveTracingHelper({
43
45
  traceMiddleware: config.middleware ?? false,
44
- tracerProvider: this.tracerProvider ?? import_api.trace.getTracerProvider()
46
+ tracerProvider: this.tracerProvider ?? import_api.trace.getTracerProvider(),
47
+ ignoreSpanTypes: config.ignoreSpanTypes ?? []
45
48
  })
46
49
  };
47
- global[import_chunk_4T34PUSB.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY] = globalValue;
48
- global[import_chunk_4T34PUSB.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY] = globalValue;
50
+ global[import_chunk_CC5XCM4T.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY] = globalValue;
51
+ global[import_chunk_CC5XCM4T.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY] = globalValue;
49
52
  }
50
53
  disable() {
51
- delete global[import_chunk_4T34PUSB.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY];
52
- delete global[import_chunk_4T34PUSB.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY];
54
+ delete global[import_chunk_CC5XCM4T.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY];
55
+ delete global[import_chunk_CC5XCM4T.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY];
53
56
  }
54
57
  isEnabled() {
55
- return Boolean(global[import_chunk_4T34PUSB.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY]);
58
+ return Boolean(global[import_chunk_CC5XCM4T.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY]);
56
59
  }
57
60
  };
@@ -16,12 +16,16 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_FTA5RKYX_exports = {};
20
- __export(chunk_FTA5RKYX_exports, {
21
- __commonJS: () => __commonJS
19
+ var chunk_TPXO4NMU_exports = {};
20
+ __export(chunk_TPXO4NMU_exports, {
21
+ __commonJS: () => __commonJS,
22
+ __publicField: () => __publicField
22
23
  });
23
- module.exports = __toCommonJS(chunk_FTA5RKYX_exports);
24
+ module.exports = __toCommonJS(chunk_TPXO4NMU_exports);
25
+ var __defProp2 = Object.defineProperty;
24
26
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
27
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
25
28
  var __commonJS = (cb, mod) => function __require() {
26
29
  return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
27
30
  };
31
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
package/dist/constants.js CHANGED
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var constants_exports = {};
20
20
  __export(constants_exports, {
21
- GLOBAL_INSTRUMENTATION_ACCESSOR_KEY: () => import_chunk_4T34PUSB.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY,
22
- GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY: () => import_chunk_4T34PUSB.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY,
23
- MODULE_NAME: () => import_chunk_4T34PUSB.MODULE_NAME,
24
- NAME: () => import_chunk_4T34PUSB.NAME,
25
- VERSION: () => import_chunk_4T34PUSB.VERSION
21
+ GLOBAL_INSTRUMENTATION_ACCESSOR_KEY: () => import_chunk_7QP4PH73.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY,
22
+ GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY: () => import_chunk_7QP4PH73.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY,
23
+ MODULE_NAME: () => import_chunk_7QP4PH73.MODULE_NAME,
24
+ NAME: () => import_chunk_7QP4PH73.NAME,
25
+ VERSION: () => import_chunk_7QP4PH73.VERSION
26
26
  });
27
27
  module.exports = __toCommonJS(constants_exports);
28
- var import_chunk_4T34PUSB = require("./chunk-4T34PUSB.js");
29
- var import_chunk_FTA5RKYX = require("./chunk-FTA5RKYX.js");
28
+ var import_chunk_7QP4PH73 = require("./chunk-7QP4PH73.js");
29
+ var import_chunk_TPXO4NMU = require("./chunk-TPXO4NMU.js");
package/dist/index.js CHANGED
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var index_exports = {};
20
20
  __export(index_exports, {
21
- PrismaInstrumentation: () => import_chunk_MW5MTNC3.PrismaInstrumentation,
21
+ PrismaInstrumentation: () => import_chunk_JLEVKP2T.PrismaInstrumentation,
22
22
  registerInstrumentations: () => import_instrumentation.registerInstrumentations
23
23
  });
24
24
  module.exports = __toCommonJS(index_exports);
25
- var import_chunk_MW5MTNC3 = require("./chunk-MW5MTNC3.js");
26
- var import_chunk_TUF6OX4N = require("./chunk-TUF6OX4N.js");
27
- var import_chunk_4T34PUSB = require("./chunk-4T34PUSB.js");
28
- var import_chunk_FTA5RKYX = require("./chunk-FTA5RKYX.js");
25
+ var import_chunk_JLEVKP2T = require("./chunk-JLEVKP2T.js");
26
+ var import_chunk_J2R3KSH3 = require("./chunk-J2R3KSH3.js");
27
+ var import_chunk_7QP4PH73 = require("./chunk-7QP4PH73.js");
28
+ var import_chunk_TPXO4NMU = require("./chunk-TPXO4NMU.js");
29
29
  var import_instrumentation = require("@opentelemetry/instrumentation");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/instrumentation",
3
- "version": "6.5.0-dev.8",
3
+ "version": "6.5.0-dev.81",
4
4
  "description": "OpenTelemetry compliant instrumentation for Prisma Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,14 +13,14 @@
13
13
  },
14
14
  "bugs": "https://github.com/prisma/prisma/issues",
15
15
  "devDependencies": {
16
- "@swc/core": "1.10.11",
16
+ "@swc/core": "1.11.5",
17
17
  "@types/jest": "29.5.14",
18
- "@types/node": "18.19.31",
18
+ "@types/node": "18.19.76",
19
19
  "@opentelemetry/api": "1.9.0",
20
20
  "jest": "29.7.0",
21
21
  "jest-junit": "16.0.0",
22
22
  "typescript": "5.4.5",
23
- "@prisma/internals": "6.5.0-dev.8"
23
+ "@prisma/internals": "6.5.0-dev.81"
24
24
  },
25
25
  "dependencies": {
26
26
  "@opentelemetry/instrumentation": "^0.52.0 || ^0.53.0 || ^0.54.0 || ^0.55.0 || ^0.56.0 || ^0.57.0"