@prisma/instrumentation 6.7.0-dev.4 → 6.7.0-dev.40

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.
@@ -1,59 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_24CW4WY4_exports = {};
20
- __export(chunk_24CW4WY4_exports, {
21
- PrismaInstrumentation: () => PrismaInstrumentation
22
- });
23
- module.exports = __toCommonJS(chunk_24CW4WY4_exports);
24
- var import_chunk_LJTRIVKN = require("./chunk-LJTRIVKN.js");
25
- var import_chunk_VX773UKP = require("./chunk-VX773UKP.js");
26
- var import_api = require("@opentelemetry/api");
27
- var import_instrumentation = require("@opentelemetry/instrumentation");
28
- var PrismaInstrumentation = class extends import_instrumentation.InstrumentationBase {
29
- tracerProvider;
30
- constructor(config = {}) {
31
- super(import_chunk_VX773UKP.NAME, import_chunk_VX773UKP.VERSION, config);
32
- }
33
- setTracerProvider(tracerProvider) {
34
- this.tracerProvider = tracerProvider;
35
- }
36
- init() {
37
- const module2 = new import_instrumentation.InstrumentationNodeModuleDefinition(import_chunk_VX773UKP.MODULE_NAME, [import_chunk_VX773UKP.VERSION]);
38
- return [module2];
39
- }
40
- enable() {
41
- const config = this._config;
42
- const globalValue = {
43
- helper: new import_chunk_LJTRIVKN.ActiveTracingHelper({
44
- traceMiddleware: config.middleware ?? false,
45
- tracerProvider: this.tracerProvider ?? import_api.trace.getTracerProvider(),
46
- ignoreSpanTypes: config.ignoreSpanTypes ?? []
47
- })
48
- };
49
- global[import_chunk_VX773UKP.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY] = globalValue;
50
- global[import_chunk_VX773UKP.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY] = globalValue;
51
- }
52
- disable() {
53
- delete global[import_chunk_VX773UKP.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY];
54
- delete global[import_chunk_VX773UKP.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY];
55
- }
56
- isEnabled() {
57
- return Boolean(global[import_chunk_VX773UKP.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY]);
58
- }
59
- };
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_FTA5RKYX_exports = {};
20
- __export(chunk_FTA5RKYX_exports, {
21
- __commonJS: () => __commonJS
22
- });
23
- module.exports = __toCommonJS(chunk_FTA5RKYX_exports);
24
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
25
- var __commonJS = (cb, mod) => function __require() {
26
- return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
27
- };
@@ -1,86 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name2 in all)
8
- __defProp(target, name2, { get: all[name2], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_GT7XQI2M_exports = {};
20
- __export(chunk_GT7XQI2M_exports, {
21
- GLOBAL_INSTRUMENTATION_ACCESSOR_KEY: () => GLOBAL_INSTRUMENTATION_ACCESSOR_KEY,
22
- GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY: () => GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY,
23
- MODULE_NAME: () => MODULE_NAME,
24
- NAME: () => NAME,
25
- VERSION: () => VERSION
26
- });
27
- module.exports = __toCommonJS(chunk_GT7XQI2M_exports);
28
- var import_chunk_FTA5RKYX = require("./chunk-FTA5RKYX.js");
29
- var require_package = (0, import_chunk_FTA5RKYX.__commonJS)({
30
- "package.json"(exports, module2) {
31
- module2.exports = {
32
- name: "@prisma/instrumentation",
33
- version: "0.0.0",
34
- description: "OpenTelemetry compliant instrumentation for Prisma Client",
35
- main: "dist/index.js",
36
- types: "dist/index.d.ts",
37
- license: "Apache-2.0",
38
- homepage: "https://www.prisma.io",
39
- repository: {
40
- type: "git",
41
- url: "https://github.com/prisma/prisma.git",
42
- directory: "packages/instrumentation"
43
- },
44
- bugs: "https://github.com/prisma/prisma/issues",
45
- devDependencies: {
46
- "@prisma/internals": "workspace:*",
47
- "@swc/core": "1.11.5",
48
- "@types/jest": "29.5.14",
49
- "@types/node": "18.19.76",
50
- "@opentelemetry/api": "1.9.0",
51
- jest: "29.7.0",
52
- "jest-junit": "16.0.0",
53
- typescript: "5.4.5"
54
- },
55
- dependencies: {
56
- "@opentelemetry/instrumentation": "^0.52.0 || ^0.53.0 || ^0.54.0 || ^0.55.0 || ^0.56.0 || ^0.57.0"
57
- },
58
- peerDependencies: {
59
- "@opentelemetry/api": "^1.8"
60
- },
61
- files: [
62
- "dist"
63
- ],
64
- keywords: [
65
- "prisma",
66
- "instrumentation",
67
- "opentelemetry",
68
- "otel"
69
- ],
70
- scripts: {
71
- dev: "DEV=true tsx helpers/build.ts",
72
- build: "tsx helpers/build.ts",
73
- prepublishOnly: "pnpm run build",
74
- test: "jest"
75
- },
76
- sideEffects: false
77
- };
78
- }
79
- });
80
- var { version, name } = require_package();
81
- var majorVersion = version.split(".")[0];
82
- var VERSION = version;
83
- var GLOBAL_INSTRUMENTATION_ACCESSOR_KEY = "PRISMA_INSTRUMENTATION";
84
- var GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY = `V${majorVersion}_PRISMA_INSTRUMENTATION`;
85
- var NAME = name;
86
- var MODULE_NAME = "@prisma/client";
@@ -1,59 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_HCTXLVRZ_exports = {};
20
- __export(chunk_HCTXLVRZ_exports, {
21
- PrismaInstrumentation: () => PrismaInstrumentation
22
- });
23
- module.exports = __toCommonJS(chunk_HCTXLVRZ_exports);
24
- var import_chunk_LJTRIVKN = require("./chunk-LJTRIVKN.js");
25
- var import_chunk_GT7XQI2M = require("./chunk-GT7XQI2M.js");
26
- var import_api = require("@opentelemetry/api");
27
- var import_instrumentation = require("@opentelemetry/instrumentation");
28
- var PrismaInstrumentation = class extends import_instrumentation.InstrumentationBase {
29
- tracerProvider;
30
- constructor(config = {}) {
31
- super(import_chunk_GT7XQI2M.NAME, import_chunk_GT7XQI2M.VERSION, config);
32
- }
33
- setTracerProvider(tracerProvider) {
34
- this.tracerProvider = tracerProvider;
35
- }
36
- init() {
37
- const module2 = new import_instrumentation.InstrumentationNodeModuleDefinition(import_chunk_GT7XQI2M.MODULE_NAME, [import_chunk_GT7XQI2M.VERSION]);
38
- return [module2];
39
- }
40
- enable() {
41
- const config = this._config;
42
- const globalValue = {
43
- helper: new import_chunk_LJTRIVKN.ActiveTracingHelper({
44
- traceMiddleware: config.middleware ?? false,
45
- tracerProvider: this.tracerProvider ?? import_api.trace.getTracerProvider(),
46
- ignoreSpanTypes: config.ignoreSpanTypes ?? []
47
- })
48
- };
49
- global[import_chunk_GT7XQI2M.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY] = globalValue;
50
- global[import_chunk_GT7XQI2M.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY] = globalValue;
51
- }
52
- disable() {
53
- delete global[import_chunk_GT7XQI2M.GLOBAL_INSTRUMENTATION_ACCESSOR_KEY];
54
- delete global[import_chunk_GT7XQI2M.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY];
55
- }
56
- isEnabled() {
57
- return Boolean(global[import_chunk_GT7XQI2M.GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY]);
58
- }
59
- };
@@ -1,86 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name2 in all)
8
- __defProp(target, name2, { get: all[name2], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_VX773UKP_exports = {};
20
- __export(chunk_VX773UKP_exports, {
21
- GLOBAL_INSTRUMENTATION_ACCESSOR_KEY: () => GLOBAL_INSTRUMENTATION_ACCESSOR_KEY,
22
- GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY: () => GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY,
23
- MODULE_NAME: () => MODULE_NAME,
24
- NAME: () => NAME,
25
- VERSION: () => VERSION
26
- });
27
- module.exports = __toCommonJS(chunk_VX773UKP_exports);
28
- var import_chunk_FTA5RKYX = require("./chunk-FTA5RKYX.js");
29
- var require_package = (0, import_chunk_FTA5RKYX.__commonJS)({
30
- "package.json"(exports, module2) {
31
- module2.exports = {
32
- name: "@prisma/instrumentation",
33
- version: "6.7.0-dev.4",
34
- description: "OpenTelemetry compliant instrumentation for Prisma Client",
35
- main: "dist/index.js",
36
- types: "dist/index.d.ts",
37
- license: "Apache-2.0",
38
- homepage: "https://www.prisma.io",
39
- repository: {
40
- type: "git",
41
- url: "https://github.com/prisma/prisma.git",
42
- directory: "packages/instrumentation"
43
- },
44
- bugs: "https://github.com/prisma/prisma/issues",
45
- devDependencies: {
46
- "@prisma/internals": "workspace:*",
47
- "@swc/core": "1.11.5",
48
- "@types/jest": "29.5.14",
49
- "@types/node": "18.19.76",
50
- "@opentelemetry/api": "1.9.0",
51
- jest: "29.7.0",
52
- "jest-junit": "16.0.0",
53
- typescript: "5.4.5"
54
- },
55
- dependencies: {
56
- "@opentelemetry/instrumentation": "^0.52.0 || ^0.53.0 || ^0.54.0 || ^0.55.0 || ^0.56.0 || ^0.57.0"
57
- },
58
- peerDependencies: {
59
- "@opentelemetry/api": "^1.8"
60
- },
61
- files: [
62
- "dist"
63
- ],
64
- keywords: [
65
- "prisma",
66
- "instrumentation",
67
- "opentelemetry",
68
- "otel"
69
- ],
70
- scripts: {
71
- dev: "DEV=true tsx helpers/build.ts",
72
- build: "tsx helpers/build.ts",
73
- prepublishOnly: "pnpm run build",
74
- test: "jest"
75
- },
76
- sideEffects: false
77
- };
78
- }
79
- });
80
- var { version, name } = require_package();
81
- var majorVersion = version.split(".")[0];
82
- var VERSION = version;
83
- var GLOBAL_INSTRUMENTATION_ACCESSOR_KEY = "PRISMA_INSTRUMENTATION";
84
- var GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY = `V${majorVersion}_PRISMA_INSTRUMENTATION`;
85
- var NAME = name;
86
- var MODULE_NAME = "@prisma/client";
File without changes
File without changes