@globalart/nestjs-logger 2.5.0 → 4.0.1

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/dist/index.cjs CHANGED
@@ -1,6 +1,31 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  //#region \0rolldown/runtime.js
3
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
8
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
9
+ var __exportAll = (all, no_symbols) => {
10
+ let target = {};
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
16
+ return target;
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
20
+ key = keys[i];
21
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
22
+ get: ((k) => from[k]).bind(null, key),
23
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
24
+ });
25
+ }
26
+ return to;
27
+ };
28
+ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4
29
  //#endregion
5
30
  let _nestjs_common = require("@nestjs/common");
6
31
  let _nestjs_core = require("@nestjs/core");
@@ -7047,11 +7072,1523 @@ const DEFAULT_LOGGER_CONFIG = {
7047
7072
  exclude: []
7048
7073
  };
7049
7074
  //#endregion
7075
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/version.js
7076
+ var VERSION;
7077
+ var init_version = __esmMin((() => {
7078
+ VERSION = "1.9.1";
7079
+ }));
7080
+ //#endregion
7081
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/internal/semver.js
7082
+ /**
7083
+ * Create a function to test an API version to see if it is compatible with the provided ownVersion.
7084
+ *
7085
+ * The returned function has the following semantics:
7086
+ * - Exact match is always compatible
7087
+ * - Major versions must match exactly
7088
+ * - 1.x package cannot use global 2.x package
7089
+ * - 2.x package cannot use global 1.x package
7090
+ * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API
7091
+ * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects
7092
+ * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3
7093
+ * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor
7094
+ * - Patch and build tag differences are not considered at this time
7095
+ *
7096
+ * @param ownVersion version which should be checked against
7097
+ */
7098
+ function _makeCompatibilityCheck(ownVersion) {
7099
+ const acceptedVersions = new Set([ownVersion]);
7100
+ const rejectedVersions = /* @__PURE__ */ new Set();
7101
+ const myVersionMatch = ownVersion.match(re);
7102
+ if (!myVersionMatch) return () => false;
7103
+ const ownVersionParsed = {
7104
+ major: +myVersionMatch[1],
7105
+ minor: +myVersionMatch[2],
7106
+ patch: +myVersionMatch[3],
7107
+ prerelease: myVersionMatch[4]
7108
+ };
7109
+ if (ownVersionParsed.prerelease != null) return function isExactmatch(globalVersion) {
7110
+ return globalVersion === ownVersion;
7111
+ };
7112
+ function _reject(v) {
7113
+ rejectedVersions.add(v);
7114
+ return false;
7115
+ }
7116
+ function _accept(v) {
7117
+ acceptedVersions.add(v);
7118
+ return true;
7119
+ }
7120
+ return function isCompatible(globalVersion) {
7121
+ if (acceptedVersions.has(globalVersion)) return true;
7122
+ if (rejectedVersions.has(globalVersion)) return false;
7123
+ const globalVersionMatch = globalVersion.match(re);
7124
+ if (!globalVersionMatch) return _reject(globalVersion);
7125
+ const globalVersionParsed = {
7126
+ major: +globalVersionMatch[1],
7127
+ minor: +globalVersionMatch[2],
7128
+ patch: +globalVersionMatch[3],
7129
+ prerelease: globalVersionMatch[4]
7130
+ };
7131
+ if (globalVersionParsed.prerelease != null) return _reject(globalVersion);
7132
+ if (ownVersionParsed.major !== globalVersionParsed.major) return _reject(globalVersion);
7133
+ if (ownVersionParsed.major === 0) {
7134
+ if (ownVersionParsed.minor === globalVersionParsed.minor && ownVersionParsed.patch <= globalVersionParsed.patch) return _accept(globalVersion);
7135
+ return _reject(globalVersion);
7136
+ }
7137
+ if (ownVersionParsed.minor <= globalVersionParsed.minor) return _accept(globalVersion);
7138
+ return _reject(globalVersion);
7139
+ };
7140
+ }
7141
+ var re, isCompatible;
7142
+ var init_semver = __esmMin((() => {
7143
+ init_version();
7144
+ re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
7145
+ isCompatible = _makeCompatibilityCheck(VERSION);
7146
+ }));
7147
+ //#endregion
7148
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js
7149
+ function registerGlobal(type, instance, diag, allowOverride = false) {
7150
+ var _a;
7151
+ const api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a !== void 0 ? _a : { version: VERSION };
7152
+ if (!allowOverride && api[type]) {
7153
+ const err = /* @__PURE__ */ new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);
7154
+ diag.error(err.stack || err.message);
7155
+ return false;
7156
+ }
7157
+ if (api.version !== "1.9.1") {
7158
+ const err = /* @__PURE__ */ new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type} does not match previously registered API v${VERSION}`);
7159
+ diag.error(err.stack || err.message);
7160
+ return false;
7161
+ }
7162
+ api[type] = instance;
7163
+ diag.debug(`@opentelemetry/api: Registered a global for ${type} v${VERSION}.`);
7164
+ return true;
7165
+ }
7166
+ function getGlobal(type) {
7167
+ var _a, _b;
7168
+ const globalVersion = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a === void 0 ? void 0 : _a.version;
7169
+ if (!globalVersion || !isCompatible(globalVersion)) return;
7170
+ return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === void 0 ? void 0 : _b[type];
7171
+ }
7172
+ function unregisterGlobal(type, diag) {
7173
+ diag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${VERSION}.`);
7174
+ const api = _global[GLOBAL_OPENTELEMETRY_API_KEY];
7175
+ if (api) delete api[type];
7176
+ }
7177
+ var major, GLOBAL_OPENTELEMETRY_API_KEY, _global;
7178
+ var init_global_utils = __esmMin((() => {
7179
+ init_version();
7180
+ init_semver();
7181
+ major = VERSION.split(".")[0];
7182
+ GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
7183
+ _global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
7184
+ }));
7185
+ //#endregion
7186
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js
7187
+ function logProxy(funcName, namespace, args) {
7188
+ const logger = getGlobal("diag");
7189
+ if (!logger) return;
7190
+ return logger[funcName](namespace, ...args);
7191
+ }
7192
+ var DiagComponentLogger;
7193
+ var init_ComponentLogger = __esmMin((() => {
7194
+ init_global_utils();
7195
+ DiagComponentLogger = class {
7196
+ constructor(props) {
7197
+ this._namespace = props.namespace || "DiagComponentLogger";
7198
+ }
7199
+ debug(...args) {
7200
+ return logProxy("debug", this._namespace, args);
7201
+ }
7202
+ error(...args) {
7203
+ return logProxy("error", this._namespace, args);
7204
+ }
7205
+ info(...args) {
7206
+ return logProxy("info", this._namespace, args);
7207
+ }
7208
+ warn(...args) {
7209
+ return logProxy("warn", this._namespace, args);
7210
+ }
7211
+ verbose(...args) {
7212
+ return logProxy("verbose", this._namespace, args);
7213
+ }
7214
+ };
7215
+ }));
7216
+ //#endregion
7217
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/diag/types.js
7218
+ var DiagLogLevel;
7219
+ var init_types = __esmMin((() => {
7220
+ (function(DiagLogLevel) {
7221
+ /** Diagnostic Logging level setting to disable all logging (except and forced logs) */
7222
+ DiagLogLevel[DiagLogLevel["NONE"] = 0] = "NONE";
7223
+ /** Identifies an error scenario */
7224
+ DiagLogLevel[DiagLogLevel["ERROR"] = 30] = "ERROR";
7225
+ /** Identifies a warning scenario */
7226
+ DiagLogLevel[DiagLogLevel["WARN"] = 50] = "WARN";
7227
+ /** General informational log message */
7228
+ DiagLogLevel[DiagLogLevel["INFO"] = 60] = "INFO";
7229
+ /** General debug log message */
7230
+ DiagLogLevel[DiagLogLevel["DEBUG"] = 70] = "DEBUG";
7231
+ /**
7232
+ * Detailed trace level logging should only be used for development, should only be set
7233
+ * in a development environment.
7234
+ */
7235
+ DiagLogLevel[DiagLogLevel["VERBOSE"] = 80] = "VERBOSE";
7236
+ /** Used to set the logging level to include all logging */
7237
+ DiagLogLevel[DiagLogLevel["ALL"] = 9999] = "ALL";
7238
+ })(DiagLogLevel || (DiagLogLevel = {}));
7239
+ }));
7240
+ //#endregion
7241
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js
7242
+ function createLogLevelDiagLogger(maxLevel, logger) {
7243
+ if (maxLevel < DiagLogLevel.NONE) maxLevel = DiagLogLevel.NONE;
7244
+ else if (maxLevel > DiagLogLevel.ALL) maxLevel = DiagLogLevel.ALL;
7245
+ logger = logger || {};
7246
+ function _filterFunc(funcName, theLevel) {
7247
+ const theFunc = logger[funcName];
7248
+ if (typeof theFunc === "function" && maxLevel >= theLevel) return theFunc.bind(logger);
7249
+ return function() {};
7250
+ }
7251
+ return {
7252
+ error: _filterFunc("error", DiagLogLevel.ERROR),
7253
+ warn: _filterFunc("warn", DiagLogLevel.WARN),
7254
+ info: _filterFunc("info", DiagLogLevel.INFO),
7255
+ debug: _filterFunc("debug", DiagLogLevel.DEBUG),
7256
+ verbose: _filterFunc("verbose", DiagLogLevel.VERBOSE)
7257
+ };
7258
+ }
7259
+ var init_logLevelLogger = __esmMin((() => {
7260
+ init_types();
7261
+ }));
7262
+ //#endregion
7263
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/api/diag.js
7264
+ var API_NAME$4, DiagAPI;
7265
+ var init_diag = __esmMin((() => {
7266
+ init_ComponentLogger();
7267
+ init_logLevelLogger();
7268
+ init_types();
7269
+ init_global_utils();
7270
+ API_NAME$4 = "diag";
7271
+ DiagAPI = class DiagAPI {
7272
+ /** Get the singleton instance of the DiagAPI API */
7273
+ static instance() {
7274
+ if (!this._instance) this._instance = new DiagAPI();
7275
+ return this._instance;
7276
+ }
7277
+ /**
7278
+ * Private internal constructor
7279
+ * @private
7280
+ */
7281
+ constructor() {
7282
+ function _logProxy(funcName) {
7283
+ return function(...args) {
7284
+ const logger = getGlobal("diag");
7285
+ if (!logger) return;
7286
+ return logger[funcName](...args);
7287
+ };
7288
+ }
7289
+ const self = this;
7290
+ const setLogger = (logger, optionsOrLogLevel = { logLevel: DiagLogLevel.INFO }) => {
7291
+ var _a, _b, _c;
7292
+ if (logger === self) {
7293
+ const err = /* @__PURE__ */ new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
7294
+ self.error((_a = err.stack) !== null && _a !== void 0 ? _a : err.message);
7295
+ return false;
7296
+ }
7297
+ if (typeof optionsOrLogLevel === "number") optionsOrLogLevel = { logLevel: optionsOrLogLevel };
7298
+ const oldLogger = getGlobal("diag");
7299
+ const newLogger = createLogLevelDiagLogger((_b = optionsOrLogLevel.logLevel) !== null && _b !== void 0 ? _b : DiagLogLevel.INFO, logger);
7300
+ if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {
7301
+ const stack = (_c = (/* @__PURE__ */ new Error()).stack) !== null && _c !== void 0 ? _c : "<failed to generate stacktrace>";
7302
+ oldLogger.warn(`Current logger will be overwritten from ${stack}`);
7303
+ newLogger.warn(`Current logger will overwrite one already registered from ${stack}`);
7304
+ }
7305
+ return registerGlobal("diag", newLogger, self, true);
7306
+ };
7307
+ self.setLogger = setLogger;
7308
+ self.disable = () => {
7309
+ unregisterGlobal(API_NAME$4, self);
7310
+ };
7311
+ self.createComponentLogger = (options) => {
7312
+ return new DiagComponentLogger(options);
7313
+ };
7314
+ self.verbose = _logProxy("verbose");
7315
+ self.debug = _logProxy("debug");
7316
+ self.info = _logProxy("info");
7317
+ self.warn = _logProxy("warn");
7318
+ self.error = _logProxy("error");
7319
+ }
7320
+ };
7321
+ }));
7322
+ //#endregion
7323
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js
7324
+ var BaggageImpl;
7325
+ var init_baggage_impl = __esmMin((() => {
7326
+ BaggageImpl = class BaggageImpl {
7327
+ constructor(entries) {
7328
+ this._entries = entries ? new Map(entries) : /* @__PURE__ */ new Map();
7329
+ }
7330
+ getEntry(key) {
7331
+ const entry = this._entries.get(key);
7332
+ if (!entry) return;
7333
+ return Object.assign({}, entry);
7334
+ }
7335
+ getAllEntries() {
7336
+ return Array.from(this._entries.entries());
7337
+ }
7338
+ setEntry(key, entry) {
7339
+ const newBaggage = new BaggageImpl(this._entries);
7340
+ newBaggage._entries.set(key, entry);
7341
+ return newBaggage;
7342
+ }
7343
+ removeEntry(key) {
7344
+ const newBaggage = new BaggageImpl(this._entries);
7345
+ newBaggage._entries.delete(key);
7346
+ return newBaggage;
7347
+ }
7348
+ removeEntries(...keys) {
7349
+ const newBaggage = new BaggageImpl(this._entries);
7350
+ for (const key of keys) newBaggage._entries.delete(key);
7351
+ return newBaggage;
7352
+ }
7353
+ clear() {
7354
+ return new BaggageImpl();
7355
+ }
7356
+ };
7357
+ }));
7358
+ //#endregion
7359
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js
7360
+ var baggageEntryMetadataSymbol;
7361
+ var init_symbol = __esmMin((() => {
7362
+ baggageEntryMetadataSymbol = Symbol("BaggageEntryMetadata");
7363
+ }));
7364
+ //#endregion
7365
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/baggage/utils.js
7366
+ /**
7367
+ * Create a new Baggage with optional entries
7368
+ *
7369
+ * @param entries An array of baggage entries the new baggage should contain
7370
+ */
7371
+ function createBaggage(entries = {}) {
7372
+ return new BaggageImpl(new Map(Object.entries(entries)));
7373
+ }
7374
+ /**
7375
+ * Create a serializable BaggageEntryMetadata object from a string.
7376
+ *
7377
+ * @param str string metadata. Format is currently not defined by the spec and has no special meaning.
7378
+ *
7379
+ * @since 1.0.0
7380
+ */
7381
+ function baggageEntryMetadataFromString(str) {
7382
+ if (typeof str !== "string") {
7383
+ diag$1.error(`Cannot create baggage metadata from unknown type: ${typeof str}`);
7384
+ str = "";
7385
+ }
7386
+ return {
7387
+ __TYPE__: baggageEntryMetadataSymbol,
7388
+ toString() {
7389
+ return str;
7390
+ }
7391
+ };
7392
+ }
7393
+ var diag$1;
7394
+ var init_utils$1 = __esmMin((() => {
7395
+ init_diag();
7396
+ init_baggage_impl();
7397
+ init_symbol();
7398
+ diag$1 = DiagAPI.instance();
7399
+ }));
7400
+ //#endregion
7401
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/context/context.js
7402
+ /**
7403
+ * Get a key to uniquely identify a context value
7404
+ *
7405
+ * @since 1.0.0
7406
+ */
7407
+ function createContextKey(description) {
7408
+ return Symbol.for(description);
7409
+ }
7410
+ var BaseContext, ROOT_CONTEXT;
7411
+ var init_context$1 = __esmMin((() => {
7412
+ BaseContext = class BaseContext {
7413
+ /**
7414
+ * Construct a new context which inherits values from an optional parent context.
7415
+ *
7416
+ * @param parentContext a context from which to inherit values
7417
+ */
7418
+ constructor(parentContext) {
7419
+ const self = this;
7420
+ self._currentContext = parentContext ? new Map(parentContext) : /* @__PURE__ */ new Map();
7421
+ self.getValue = (key) => self._currentContext.get(key);
7422
+ self.setValue = (key, value) => {
7423
+ const context = new BaseContext(self._currentContext);
7424
+ context._currentContext.set(key, value);
7425
+ return context;
7426
+ };
7427
+ self.deleteValue = (key) => {
7428
+ const context = new BaseContext(self._currentContext);
7429
+ context._currentContext.delete(key);
7430
+ return context;
7431
+ };
7432
+ }
7433
+ };
7434
+ ROOT_CONTEXT = new BaseContext();
7435
+ }));
7436
+ //#endregion
7437
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/diag/consoleLogger.js
7438
+ var consoleMap, _originalConsoleMethods, DiagConsoleLogger;
7439
+ var init_consoleLogger = __esmMin((() => {
7440
+ consoleMap = [
7441
+ {
7442
+ n: "error",
7443
+ c: "error"
7444
+ },
7445
+ {
7446
+ n: "warn",
7447
+ c: "warn"
7448
+ },
7449
+ {
7450
+ n: "info",
7451
+ c: "info"
7452
+ },
7453
+ {
7454
+ n: "debug",
7455
+ c: "debug"
7456
+ },
7457
+ {
7458
+ n: "verbose",
7459
+ c: "trace"
7460
+ }
7461
+ ];
7462
+ _originalConsoleMethods = {};
7463
+ if (typeof console !== "undefined") {
7464
+ for (const key of [
7465
+ "error",
7466
+ "warn",
7467
+ "info",
7468
+ "debug",
7469
+ "trace",
7470
+ "log"
7471
+ ]) if (typeof console[key] === "function") _originalConsoleMethods[key] = console[key];
7472
+ }
7473
+ DiagConsoleLogger = class {
7474
+ constructor() {
7475
+ function _consoleFunc(funcName) {
7476
+ return function(...args) {
7477
+ let theFunc = _originalConsoleMethods[funcName];
7478
+ if (typeof theFunc !== "function") theFunc = _originalConsoleMethods["log"];
7479
+ if (typeof theFunc !== "function" && console) {
7480
+ theFunc = console[funcName];
7481
+ if (typeof theFunc !== "function") theFunc = console.log;
7482
+ }
7483
+ if (typeof theFunc === "function") return theFunc.apply(console, args);
7484
+ };
7485
+ }
7486
+ for (let i = 0; i < consoleMap.length; i++) this[consoleMap[i].n] = _consoleFunc(consoleMap[i].c);
7487
+ }
7488
+ };
7489
+ }));
7490
+ //#endregion
7491
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js
7492
+ /**
7493
+ * Create a no-op Meter
7494
+ *
7495
+ * @since 1.3.0
7496
+ */
7497
+ function createNoopMeter() {
7498
+ return NOOP_METER;
7499
+ }
7500
+ var NoopMeter, NoopMetric, NoopCounterMetric, NoopUpDownCounterMetric, NoopGaugeMetric, NoopHistogramMetric, NoopObservableMetric, NoopObservableCounterMetric, NoopObservableGaugeMetric, NoopObservableUpDownCounterMetric, NOOP_METER, NOOP_COUNTER_METRIC, NOOP_GAUGE_METRIC, NOOP_HISTOGRAM_METRIC, NOOP_UP_DOWN_COUNTER_METRIC, NOOP_OBSERVABLE_COUNTER_METRIC, NOOP_OBSERVABLE_GAUGE_METRIC, NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
7501
+ var init_NoopMeter = __esmMin((() => {
7502
+ NoopMeter = class {
7503
+ constructor() {}
7504
+ /**
7505
+ * @see {@link Meter.createGauge}
7506
+ */
7507
+ createGauge(_name, _options) {
7508
+ return NOOP_GAUGE_METRIC;
7509
+ }
7510
+ /**
7511
+ * @see {@link Meter.createHistogram}
7512
+ */
7513
+ createHistogram(_name, _options) {
7514
+ return NOOP_HISTOGRAM_METRIC;
7515
+ }
7516
+ /**
7517
+ * @see {@link Meter.createCounter}
7518
+ */
7519
+ createCounter(_name, _options) {
7520
+ return NOOP_COUNTER_METRIC;
7521
+ }
7522
+ /**
7523
+ * @see {@link Meter.createUpDownCounter}
7524
+ */
7525
+ createUpDownCounter(_name, _options) {
7526
+ return NOOP_UP_DOWN_COUNTER_METRIC;
7527
+ }
7528
+ /**
7529
+ * @see {@link Meter.createObservableGauge}
7530
+ */
7531
+ createObservableGauge(_name, _options) {
7532
+ return NOOP_OBSERVABLE_GAUGE_METRIC;
7533
+ }
7534
+ /**
7535
+ * @see {@link Meter.createObservableCounter}
7536
+ */
7537
+ createObservableCounter(_name, _options) {
7538
+ return NOOP_OBSERVABLE_COUNTER_METRIC;
7539
+ }
7540
+ /**
7541
+ * @see {@link Meter.createObservableUpDownCounter}
7542
+ */
7543
+ createObservableUpDownCounter(_name, _options) {
7544
+ return NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
7545
+ }
7546
+ /**
7547
+ * @see {@link Meter.addBatchObservableCallback}
7548
+ */
7549
+ addBatchObservableCallback(_callback, _observables) {}
7550
+ /**
7551
+ * @see {@link Meter.removeBatchObservableCallback}
7552
+ */
7553
+ removeBatchObservableCallback(_callback) {}
7554
+ };
7555
+ NoopMetric = class {};
7556
+ NoopCounterMetric = class extends NoopMetric {
7557
+ add(_value, _attributes) {}
7558
+ };
7559
+ NoopUpDownCounterMetric = class extends NoopMetric {
7560
+ add(_value, _attributes) {}
7561
+ };
7562
+ NoopGaugeMetric = class extends NoopMetric {
7563
+ record(_value, _attributes) {}
7564
+ };
7565
+ NoopHistogramMetric = class extends NoopMetric {
7566
+ record(_value, _attributes) {}
7567
+ };
7568
+ NoopObservableMetric = class {
7569
+ addCallback(_callback) {}
7570
+ removeCallback(_callback) {}
7571
+ };
7572
+ NoopObservableCounterMetric = class extends NoopObservableMetric {};
7573
+ NoopObservableGaugeMetric = class extends NoopObservableMetric {};
7574
+ NoopObservableUpDownCounterMetric = class extends NoopObservableMetric {};
7575
+ NOOP_METER = new NoopMeter();
7576
+ NOOP_COUNTER_METRIC = new NoopCounterMetric();
7577
+ NOOP_GAUGE_METRIC = new NoopGaugeMetric();
7578
+ NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric();
7579
+ NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric();
7580
+ NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric();
7581
+ NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric();
7582
+ NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric();
7583
+ }));
7584
+ //#endregion
7585
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/metrics/Metric.js
7586
+ var ValueType;
7587
+ var init_Metric = __esmMin((() => {
7588
+ (function(ValueType) {
7589
+ ValueType[ValueType["INT"] = 0] = "INT";
7590
+ ValueType[ValueType["DOUBLE"] = 1] = "DOUBLE";
7591
+ })(ValueType || (ValueType = {}));
7592
+ }));
7593
+ //#endregion
7594
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js
7595
+ var defaultTextMapGetter, defaultTextMapSetter;
7596
+ var init_TextMapPropagator = __esmMin((() => {
7597
+ defaultTextMapGetter = {
7598
+ get(carrier, key) {
7599
+ if (carrier == null) return;
7600
+ return carrier[key];
7601
+ },
7602
+ keys(carrier) {
7603
+ if (carrier == null) return [];
7604
+ return Object.keys(carrier);
7605
+ }
7606
+ };
7607
+ defaultTextMapSetter = { set(carrier, key, value) {
7608
+ if (carrier == null) return;
7609
+ carrier[key] = value;
7610
+ } };
7611
+ }));
7612
+ //#endregion
7613
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js
7614
+ var NoopContextManager;
7615
+ var init_NoopContextManager = __esmMin((() => {
7616
+ init_context$1();
7617
+ NoopContextManager = class {
7618
+ active() {
7619
+ return ROOT_CONTEXT;
7620
+ }
7621
+ with(_context, fn, thisArg, ...args) {
7622
+ return fn.call(thisArg, ...args);
7623
+ }
7624
+ bind(_context, target) {
7625
+ return target;
7626
+ }
7627
+ enable() {
7628
+ return this;
7629
+ }
7630
+ disable() {
7631
+ return this;
7632
+ }
7633
+ };
7634
+ }));
7635
+ //#endregion
7636
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/api/context.js
7637
+ var API_NAME$3, NOOP_CONTEXT_MANAGER, ContextAPI;
7638
+ var init_context = __esmMin((() => {
7639
+ init_NoopContextManager();
7640
+ init_global_utils();
7641
+ init_diag();
7642
+ API_NAME$3 = "context";
7643
+ NOOP_CONTEXT_MANAGER = new NoopContextManager();
7644
+ ContextAPI = class ContextAPI {
7645
+ /** Empty private constructor prevents end users from constructing a new instance of the API */
7646
+ constructor() {}
7647
+ /** Get the singleton instance of the Context API */
7648
+ static getInstance() {
7649
+ if (!this._instance) this._instance = new ContextAPI();
7650
+ return this._instance;
7651
+ }
7652
+ /**
7653
+ * Set the current context manager.
7654
+ *
7655
+ * @returns true if the context manager was successfully registered, else false
7656
+ */
7657
+ setGlobalContextManager(contextManager) {
7658
+ return registerGlobal(API_NAME$3, contextManager, DiagAPI.instance());
7659
+ }
7660
+ /**
7661
+ * Get the currently active context
7662
+ */
7663
+ active() {
7664
+ return this._getContextManager().active();
7665
+ }
7666
+ /**
7667
+ * Execute a function with an active context
7668
+ *
7669
+ * @param context context to be active during function execution
7670
+ * @param fn function to execute in a context
7671
+ * @param thisArg optional receiver to be used for calling fn
7672
+ * @param args optional arguments forwarded to fn
7673
+ */
7674
+ with(context, fn, thisArg, ...args) {
7675
+ return this._getContextManager().with(context, fn, thisArg, ...args);
7676
+ }
7677
+ /**
7678
+ * Bind a context to a target function or event emitter
7679
+ *
7680
+ * @param context context to bind to the event emitter or function. Defaults to the currently active context
7681
+ * @param target function or event emitter to bind
7682
+ */
7683
+ bind(context, target) {
7684
+ return this._getContextManager().bind(context, target);
7685
+ }
7686
+ _getContextManager() {
7687
+ return getGlobal(API_NAME$3) || NOOP_CONTEXT_MANAGER;
7688
+ }
7689
+ /** Disable and remove the global context manager */
7690
+ disable() {
7691
+ this._getContextManager().disable();
7692
+ unregisterGlobal(API_NAME$3, DiagAPI.instance());
7693
+ }
7694
+ };
7695
+ }));
7696
+ //#endregion
7697
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js
7698
+ var TraceFlags;
7699
+ var init_trace_flags = __esmMin((() => {
7700
+ (function(TraceFlags) {
7701
+ /** Represents no flag set. */
7702
+ TraceFlags[TraceFlags["NONE"] = 0] = "NONE";
7703
+ /** Bit to represent whether trace is sampled in trace flags. */
7704
+ TraceFlags[TraceFlags["SAMPLED"] = 1] = "SAMPLED";
7705
+ })(TraceFlags || (TraceFlags = {}));
7706
+ }));
7707
+ //#endregion
7708
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js
7709
+ var INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT;
7710
+ var init_invalid_span_constants = __esmMin((() => {
7711
+ init_trace_flags();
7712
+ INVALID_SPANID = "0000000000000000";
7713
+ INVALID_TRACEID = "00000000000000000000000000000000";
7714
+ INVALID_SPAN_CONTEXT = {
7715
+ traceId: INVALID_TRACEID,
7716
+ spanId: INVALID_SPANID,
7717
+ traceFlags: TraceFlags.NONE
7718
+ };
7719
+ }));
7720
+ //#endregion
7721
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js
7722
+ var NonRecordingSpan;
7723
+ var init_NonRecordingSpan = __esmMin((() => {
7724
+ init_invalid_span_constants();
7725
+ NonRecordingSpan = class {
7726
+ constructor(spanContext = INVALID_SPAN_CONTEXT) {
7727
+ this._spanContext = spanContext;
7728
+ }
7729
+ spanContext() {
7730
+ return this._spanContext;
7731
+ }
7732
+ setAttribute(_key, _value) {
7733
+ return this;
7734
+ }
7735
+ setAttributes(_attributes) {
7736
+ return this;
7737
+ }
7738
+ addEvent(_name, _attributes) {
7739
+ return this;
7740
+ }
7741
+ addLink(_link) {
7742
+ return this;
7743
+ }
7744
+ addLinks(_links) {
7745
+ return this;
7746
+ }
7747
+ setStatus(_status) {
7748
+ return this;
7749
+ }
7750
+ updateName(_name) {
7751
+ return this;
7752
+ }
7753
+ end(_endTime) {}
7754
+ isRecording() {
7755
+ return false;
7756
+ }
7757
+ recordException(_exception, _time) {}
7758
+ };
7759
+ }));
7760
+ //#endregion
7761
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js
7762
+ /**
7763
+ * Return the span if one exists
7764
+ *
7765
+ * @param context context to get span from
7766
+ */
7767
+ function getSpan(context) {
7768
+ return context.getValue(SPAN_KEY) || void 0;
7769
+ }
7770
+ /**
7771
+ * Gets the span from the current context, if one exists.
7772
+ */
7773
+ function getActiveSpan() {
7774
+ return getSpan(ContextAPI.getInstance().active());
7775
+ }
7776
+ /**
7777
+ * Set the span on a context
7778
+ *
7779
+ * @param context context to use as parent
7780
+ * @param span span to set active
7781
+ */
7782
+ function setSpan(context, span) {
7783
+ return context.setValue(SPAN_KEY, span);
7784
+ }
7785
+ /**
7786
+ * Remove current span stored in the context
7787
+ *
7788
+ * @param context context to delete span from
7789
+ */
7790
+ function deleteSpan(context) {
7791
+ return context.deleteValue(SPAN_KEY);
7792
+ }
7793
+ /**
7794
+ * Wrap span context in a NoopSpan and set as span in a new
7795
+ * context
7796
+ *
7797
+ * @param context context to set active span on
7798
+ * @param spanContext span context to be wrapped
7799
+ */
7800
+ function setSpanContext(context, spanContext) {
7801
+ return setSpan(context, new NonRecordingSpan(spanContext));
7802
+ }
7803
+ /**
7804
+ * Get the span context of the span if it exists.
7805
+ *
7806
+ * @param context context to get values from
7807
+ */
7808
+ function getSpanContext(context) {
7809
+ var _a;
7810
+ return (_a = getSpan(context)) === null || _a === void 0 ? void 0 : _a.spanContext();
7811
+ }
7812
+ var SPAN_KEY;
7813
+ var init_context_utils = __esmMin((() => {
7814
+ init_context$1();
7815
+ init_NonRecordingSpan();
7816
+ init_context();
7817
+ SPAN_KEY = createContextKey("OpenTelemetry Context Key SPAN");
7818
+ }));
7819
+ //#endregion
7820
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js
7821
+ function isValidHex(id, length) {
7822
+ if (typeof id !== "string" || id.length !== length) return false;
7823
+ let r = 0;
7824
+ for (let i = 0; i < id.length; i += 4) r += (isHex[id.charCodeAt(i)] | 0) + (isHex[id.charCodeAt(i + 1)] | 0) + (isHex[id.charCodeAt(i + 2)] | 0) + (isHex[id.charCodeAt(i + 3)] | 0);
7825
+ return r === length;
7826
+ }
7827
+ /**
7828
+ * @since 1.0.0
7829
+ */
7830
+ function isValidTraceId(traceId) {
7831
+ return isValidHex(traceId, 32) && traceId !== "00000000000000000000000000000000";
7832
+ }
7833
+ /**
7834
+ * @since 1.0.0
7835
+ */
7836
+ function isValidSpanId(spanId) {
7837
+ return isValidHex(spanId, 16) && spanId !== "0000000000000000";
7838
+ }
7839
+ /**
7840
+ * Returns true if this {@link SpanContext} is valid.
7841
+ * @return true if this {@link SpanContext} is valid.
7842
+ *
7843
+ * @since 1.0.0
7844
+ */
7845
+ function isSpanContextValid(spanContext) {
7846
+ return isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId);
7847
+ }
7848
+ /**
7849
+ * Wrap the given {@link SpanContext} in a new non-recording {@link Span}
7850
+ *
7851
+ * @param spanContext span context to be wrapped
7852
+ * @returns a new non-recording {@link Span} with the provided context
7853
+ */
7854
+ function wrapSpanContext(spanContext) {
7855
+ return new NonRecordingSpan(spanContext);
7856
+ }
7857
+ var isHex;
7858
+ var init_spancontext_utils = __esmMin((() => {
7859
+ init_invalid_span_constants();
7860
+ init_NonRecordingSpan();
7861
+ isHex = new Uint8Array([
7862
+ 0,
7863
+ 0,
7864
+ 0,
7865
+ 0,
7866
+ 0,
7867
+ 0,
7868
+ 0,
7869
+ 0,
7870
+ 0,
7871
+ 0,
7872
+ 0,
7873
+ 0,
7874
+ 0,
7875
+ 0,
7876
+ 0,
7877
+ 0,
7878
+ 0,
7879
+ 0,
7880
+ 0,
7881
+ 0,
7882
+ 0,
7883
+ 0,
7884
+ 0,
7885
+ 0,
7886
+ 0,
7887
+ 0,
7888
+ 0,
7889
+ 0,
7890
+ 0,
7891
+ 0,
7892
+ 0,
7893
+ 0,
7894
+ 0,
7895
+ 0,
7896
+ 0,
7897
+ 0,
7898
+ 0,
7899
+ 0,
7900
+ 0,
7901
+ 0,
7902
+ 0,
7903
+ 0,
7904
+ 0,
7905
+ 0,
7906
+ 0,
7907
+ 0,
7908
+ 0,
7909
+ 0,
7910
+ 1,
7911
+ 1,
7912
+ 1,
7913
+ 1,
7914
+ 1,
7915
+ 1,
7916
+ 1,
7917
+ 1,
7918
+ 1,
7919
+ 1,
7920
+ 0,
7921
+ 0,
7922
+ 0,
7923
+ 0,
7924
+ 0,
7925
+ 0,
7926
+ 0,
7927
+ 1,
7928
+ 1,
7929
+ 1,
7930
+ 1,
7931
+ 1,
7932
+ 1,
7933
+ 0,
7934
+ 0,
7935
+ 0,
7936
+ 0,
7937
+ 0,
7938
+ 0,
7939
+ 0,
7940
+ 0,
7941
+ 0,
7942
+ 0,
7943
+ 0,
7944
+ 0,
7945
+ 0,
7946
+ 0,
7947
+ 0,
7948
+ 0,
7949
+ 0,
7950
+ 0,
7951
+ 0,
7952
+ 0,
7953
+ 0,
7954
+ 0,
7955
+ 0,
7956
+ 0,
7957
+ 0,
7958
+ 0,
7959
+ 1,
7960
+ 1,
7961
+ 1,
7962
+ 1,
7963
+ 1,
7964
+ 1
7965
+ ]);
7966
+ }));
7967
+ //#endregion
7968
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js
7969
+ function isSpanContext(spanContext) {
7970
+ return spanContext !== null && typeof spanContext === "object" && "spanId" in spanContext && typeof spanContext["spanId"] === "string" && "traceId" in spanContext && typeof spanContext["traceId"] === "string" && "traceFlags" in spanContext && typeof spanContext["traceFlags"] === "number";
7971
+ }
7972
+ var contextApi, NoopTracer;
7973
+ var init_NoopTracer = __esmMin((() => {
7974
+ init_context();
7975
+ init_context_utils();
7976
+ init_NonRecordingSpan();
7977
+ init_spancontext_utils();
7978
+ contextApi = ContextAPI.getInstance();
7979
+ NoopTracer = class {
7980
+ startSpan(name, options, context = contextApi.active()) {
7981
+ if (Boolean(options === null || options === void 0 ? void 0 : options.root)) return new NonRecordingSpan();
7982
+ const parentFromContext = context && getSpanContext(context);
7983
+ if (isSpanContext(parentFromContext) && isSpanContextValid(parentFromContext)) return new NonRecordingSpan(parentFromContext);
7984
+ else return new NonRecordingSpan();
7985
+ }
7986
+ startActiveSpan(name, arg2, arg3, arg4) {
7987
+ let opts;
7988
+ let ctx;
7989
+ let fn;
7990
+ if (arguments.length < 2) return;
7991
+ else if (arguments.length === 2) fn = arg2;
7992
+ else if (arguments.length === 3) {
7993
+ opts = arg2;
7994
+ fn = arg3;
7995
+ } else {
7996
+ opts = arg2;
7997
+ ctx = arg3;
7998
+ fn = arg4;
7999
+ }
8000
+ const parentContext = ctx !== null && ctx !== void 0 ? ctx : contextApi.active();
8001
+ const span = this.startSpan(name, opts, parentContext);
8002
+ const contextWithSpanSet = setSpan(parentContext, span);
8003
+ return contextApi.with(contextWithSpanSet, fn, void 0, span);
8004
+ }
8005
+ };
8006
+ }));
8007
+ //#endregion
8008
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js
8009
+ var NOOP_TRACER, ProxyTracer;
8010
+ var init_ProxyTracer = __esmMin((() => {
8011
+ init_NoopTracer();
8012
+ NOOP_TRACER = new NoopTracer();
8013
+ ProxyTracer = class {
8014
+ constructor(provider, name, version, options) {
8015
+ this._provider = provider;
8016
+ this.name = name;
8017
+ this.version = version;
8018
+ this.options = options;
8019
+ }
8020
+ startSpan(name, options, context) {
8021
+ return this._getTracer().startSpan(name, options, context);
8022
+ }
8023
+ startActiveSpan(_name, _options, _context, _fn) {
8024
+ const tracer = this._getTracer();
8025
+ return Reflect.apply(tracer.startActiveSpan, tracer, arguments);
8026
+ }
8027
+ /**
8028
+ * Try to get a tracer from the proxy tracer provider.
8029
+ * If the proxy tracer provider has no delegate, return a noop tracer.
8030
+ */
8031
+ _getTracer() {
8032
+ if (this._delegate) return this._delegate;
8033
+ const tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);
8034
+ if (!tracer) return NOOP_TRACER;
8035
+ this._delegate = tracer;
8036
+ return this._delegate;
8037
+ }
8038
+ };
8039
+ }));
8040
+ //#endregion
8041
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js
8042
+ var NoopTracerProvider;
8043
+ var init_NoopTracerProvider = __esmMin((() => {
8044
+ init_NoopTracer();
8045
+ NoopTracerProvider = class {
8046
+ getTracer(_name, _version, _options) {
8047
+ return new NoopTracer();
8048
+ }
8049
+ };
8050
+ }));
8051
+ //#endregion
8052
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js
8053
+ var NOOP_TRACER_PROVIDER, ProxyTracerProvider;
8054
+ var init_ProxyTracerProvider = __esmMin((() => {
8055
+ init_ProxyTracer();
8056
+ init_NoopTracerProvider();
8057
+ NOOP_TRACER_PROVIDER = new NoopTracerProvider();
8058
+ ProxyTracerProvider = class {
8059
+ /**
8060
+ * Get a {@link ProxyTracer}
8061
+ */
8062
+ getTracer(name, version, options) {
8063
+ var _a;
8064
+ return (_a = this.getDelegateTracer(name, version, options)) !== null && _a !== void 0 ? _a : new ProxyTracer(this, name, version, options);
8065
+ }
8066
+ getDelegate() {
8067
+ var _a;
8068
+ return (_a = this._delegate) !== null && _a !== void 0 ? _a : NOOP_TRACER_PROVIDER;
8069
+ }
8070
+ /**
8071
+ * Set the delegate tracer provider
8072
+ */
8073
+ setDelegate(delegate) {
8074
+ this._delegate = delegate;
8075
+ }
8076
+ getDelegateTracer(name, version, options) {
8077
+ var _a;
8078
+ return (_a = this._delegate) === null || _a === void 0 ? void 0 : _a.getTracer(name, version, options);
8079
+ }
8080
+ };
8081
+ }));
8082
+ //#endregion
8083
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js
8084
+ var SamplingDecision;
8085
+ var init_SamplingResult = __esmMin((() => {
8086
+ (function(SamplingDecision) {
8087
+ /**
8088
+ * `Span.isRecording() === false`, span will not be recorded and all events
8089
+ * and attributes will be dropped.
8090
+ */
8091
+ SamplingDecision[SamplingDecision["NOT_RECORD"] = 0] = "NOT_RECORD";
8092
+ /**
8093
+ * `Span.isRecording() === true`, but `Sampled` flag in {@link TraceFlags}
8094
+ * MUST NOT be set.
8095
+ */
8096
+ SamplingDecision[SamplingDecision["RECORD"] = 1] = "RECORD";
8097
+ /**
8098
+ * `Span.isRecording() === true` AND `Sampled` flag in {@link TraceFlags}
8099
+ * MUST be set.
8100
+ */
8101
+ SamplingDecision[SamplingDecision["RECORD_AND_SAMPLED"] = 2] = "RECORD_AND_SAMPLED";
8102
+ })(SamplingDecision || (SamplingDecision = {}));
8103
+ }));
8104
+ //#endregion
8105
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js
8106
+ var SpanKind;
8107
+ var init_span_kind = __esmMin((() => {
8108
+ (function(SpanKind) {
8109
+ /** Default value. Indicates that the span is used internally. */
8110
+ SpanKind[SpanKind["INTERNAL"] = 0] = "INTERNAL";
8111
+ /**
8112
+ * Indicates that the span covers server-side handling of an RPC or other
8113
+ * remote request.
8114
+ */
8115
+ SpanKind[SpanKind["SERVER"] = 1] = "SERVER";
8116
+ /**
8117
+ * Indicates that the span covers the client-side wrapper around an RPC or
8118
+ * other remote request.
8119
+ */
8120
+ SpanKind[SpanKind["CLIENT"] = 2] = "CLIENT";
8121
+ /**
8122
+ * Indicates that the span describes producer sending a message to a
8123
+ * broker. Unlike client and server, there is no direct critical path latency
8124
+ * relationship between producer and consumer spans.
8125
+ */
8126
+ SpanKind[SpanKind["PRODUCER"] = 3] = "PRODUCER";
8127
+ /**
8128
+ * Indicates that the span describes consumer receiving a message from a
8129
+ * broker. Unlike client and server, there is no direct critical path latency
8130
+ * relationship between producer and consumer spans.
8131
+ */
8132
+ SpanKind[SpanKind["CONSUMER"] = 4] = "CONSUMER";
8133
+ })(SpanKind || (SpanKind = {}));
8134
+ }));
8135
+ //#endregion
8136
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/status.js
8137
+ var SpanStatusCode;
8138
+ var init_status = __esmMin((() => {
8139
+ (function(SpanStatusCode) {
8140
+ /**
8141
+ * The default status.
8142
+ */
8143
+ SpanStatusCode[SpanStatusCode["UNSET"] = 0] = "UNSET";
8144
+ /**
8145
+ * The operation has been validated by an Application developer or
8146
+ * Operator to have completed successfully.
8147
+ */
8148
+ SpanStatusCode[SpanStatusCode["OK"] = 1] = "OK";
8149
+ /**
8150
+ * The operation contains an error.
8151
+ */
8152
+ SpanStatusCode[SpanStatusCode["ERROR"] = 2] = "ERROR";
8153
+ })(SpanStatusCode || (SpanStatusCode = {}));
8154
+ }));
8155
+ //#endregion
8156
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-validators.js
8157
+ /**
8158
+ * Key is opaque string up to 256 characters printable. It MUST begin with a
8159
+ * lowercase letter, and can only contain lowercase letters a-z, digits 0-9,
8160
+ * underscores _, dashes -, asterisks *, and forward slashes /.
8161
+ * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the
8162
+ * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.
8163
+ * see https://www.w3.org/TR/trace-context/#key
8164
+ */
8165
+ function validateKey(key) {
8166
+ return VALID_KEY_REGEX.test(key);
8167
+ }
8168
+ /**
8169
+ * Value is opaque string up to 256 characters printable ASCII RFC0020
8170
+ * characters (i.e., the range 0x20 to 0x7E) except comma , and =.
8171
+ */
8172
+ function validateValue(value) {
8173
+ return VALID_VALUE_BASE_REGEX.test(value) && !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value);
8174
+ }
8175
+ var VALID_KEY_CHAR_RANGE, VALID_KEY_REGEX, VALID_VALUE_BASE_REGEX, INVALID_VALUE_COMMA_EQUAL_REGEX;
8176
+ var init_tracestate_validators = __esmMin((() => {
8177
+ VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]";
8178
+ VALID_KEY_REGEX = new RegExp(`^(?:${`[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`}|${`[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`})$`);
8179
+ VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
8180
+ INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
8181
+ }));
8182
+ //#endregion
8183
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-impl.js
8184
+ var MAX_TRACE_STATE_ITEMS, MAX_TRACE_STATE_LEN, LIST_MEMBERS_SEPARATOR, LIST_MEMBER_KEY_VALUE_SPLITTER, TraceStateImpl;
8185
+ var init_tracestate_impl = __esmMin((() => {
8186
+ init_tracestate_validators();
8187
+ MAX_TRACE_STATE_ITEMS = 32;
8188
+ MAX_TRACE_STATE_LEN = 512;
8189
+ LIST_MEMBERS_SEPARATOR = ",";
8190
+ LIST_MEMBER_KEY_VALUE_SPLITTER = "=";
8191
+ TraceStateImpl = class TraceStateImpl {
8192
+ constructor(rawTraceState) {
8193
+ this._internalState = /* @__PURE__ */ new Map();
8194
+ if (rawTraceState) this._parse(rawTraceState);
8195
+ }
8196
+ set(key, value) {
8197
+ const traceState = this._clone();
8198
+ if (traceState._internalState.has(key)) traceState._internalState.delete(key);
8199
+ traceState._internalState.set(key, value);
8200
+ return traceState;
8201
+ }
8202
+ unset(key) {
8203
+ const traceState = this._clone();
8204
+ traceState._internalState.delete(key);
8205
+ return traceState;
8206
+ }
8207
+ get(key) {
8208
+ return this._internalState.get(key);
8209
+ }
8210
+ serialize() {
8211
+ return Array.from(this._internalState.keys()).reduceRight((agg, key) => {
8212
+ agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));
8213
+ return agg;
8214
+ }, []).join(LIST_MEMBERS_SEPARATOR);
8215
+ }
8216
+ _parse(rawTraceState) {
8217
+ if (rawTraceState.length > MAX_TRACE_STATE_LEN) return;
8218
+ this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).reduceRight((agg, part) => {
8219
+ const listMember = part.trim();
8220
+ const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
8221
+ if (i !== -1) {
8222
+ const key = listMember.slice(0, i);
8223
+ const value = listMember.slice(i + 1, part.length);
8224
+ if (validateKey(key) && validateValue(value)) agg.set(key, value);
8225
+ }
8226
+ return agg;
8227
+ }, /* @__PURE__ */ new Map());
8228
+ if (this._internalState.size > MAX_TRACE_STATE_ITEMS) this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS));
8229
+ }
8230
+ _keys() {
8231
+ return Array.from(this._internalState.keys()).reverse();
8232
+ }
8233
+ _clone() {
8234
+ const traceState = new TraceStateImpl();
8235
+ traceState._internalState = new Map(this._internalState);
8236
+ return traceState;
8237
+ }
8238
+ };
8239
+ }));
8240
+ //#endregion
8241
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace/internal/utils.js
8242
+ /**
8243
+ * @since 1.1.0
8244
+ */
8245
+ function createTraceState(rawTraceState) {
8246
+ return new TraceStateImpl(rawTraceState);
8247
+ }
8248
+ var init_utils = __esmMin((() => {
8249
+ init_tracestate_impl();
8250
+ }));
8251
+ //#endregion
8252
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/context-api.js
8253
+ var context;
8254
+ var init_context_api = __esmMin((() => {
8255
+ init_context();
8256
+ context = ContextAPI.getInstance();
8257
+ }));
8258
+ //#endregion
8259
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/diag-api.js
8260
+ var diag;
8261
+ var init_diag_api = __esmMin((() => {
8262
+ init_diag();
8263
+ diag = DiagAPI.instance();
8264
+ }));
8265
+ //#endregion
8266
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js
8267
+ var NoopMeterProvider, NOOP_METER_PROVIDER;
8268
+ var init_NoopMeterProvider = __esmMin((() => {
8269
+ init_NoopMeter();
8270
+ NoopMeterProvider = class {
8271
+ getMeter(_name, _version, _options) {
8272
+ return NOOP_METER;
8273
+ }
8274
+ };
8275
+ NOOP_METER_PROVIDER = new NoopMeterProvider();
8276
+ }));
8277
+ //#endregion
8278
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/api/metrics.js
8279
+ var API_NAME$2, MetricsAPI;
8280
+ var init_metrics = __esmMin((() => {
8281
+ init_NoopMeterProvider();
8282
+ init_global_utils();
8283
+ init_diag();
8284
+ API_NAME$2 = "metrics";
8285
+ MetricsAPI = class MetricsAPI {
8286
+ /** Empty private constructor prevents end users from constructing a new instance of the API */
8287
+ constructor() {}
8288
+ /** Get the singleton instance of the Metrics API */
8289
+ static getInstance() {
8290
+ if (!this._instance) this._instance = new MetricsAPI();
8291
+ return this._instance;
8292
+ }
8293
+ /**
8294
+ * Set the current global meter provider.
8295
+ * Returns true if the meter provider was successfully registered, else false.
8296
+ */
8297
+ setGlobalMeterProvider(provider) {
8298
+ return registerGlobal(API_NAME$2, provider, DiagAPI.instance());
8299
+ }
8300
+ /**
8301
+ * Returns the global meter provider.
8302
+ */
8303
+ getMeterProvider() {
8304
+ return getGlobal(API_NAME$2) || NOOP_METER_PROVIDER;
8305
+ }
8306
+ /**
8307
+ * Returns a meter from the global meter provider.
8308
+ */
8309
+ getMeter(name, version, options) {
8310
+ return this.getMeterProvider().getMeter(name, version, options);
8311
+ }
8312
+ /** Remove the global meter provider */
8313
+ disable() {
8314
+ unregisterGlobal(API_NAME$2, DiagAPI.instance());
8315
+ }
8316
+ };
8317
+ }));
8318
+ //#endregion
8319
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/metrics-api.js
8320
+ var metrics;
8321
+ var init_metrics_api = __esmMin((() => {
8322
+ init_metrics();
8323
+ metrics = MetricsAPI.getInstance();
8324
+ }));
8325
+ //#endregion
8326
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js
8327
+ var NoopTextMapPropagator;
8328
+ var init_NoopTextMapPropagator = __esmMin((() => {
8329
+ NoopTextMapPropagator = class {
8330
+ /** Noop inject function does nothing */
8331
+ inject(_context, _carrier) {}
8332
+ /** Noop extract function does nothing and returns the input context */
8333
+ extract(context, _carrier) {
8334
+ return context;
8335
+ }
8336
+ fields() {
8337
+ return [];
8338
+ }
8339
+ };
8340
+ }));
8341
+ //#endregion
8342
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js
8343
+ /**
8344
+ * Retrieve the current baggage from the given context
8345
+ *
8346
+ * @param {Context} Context that manage all context values
8347
+ * @returns {Baggage} Extracted baggage from the context
8348
+ */
8349
+ function getBaggage(context) {
8350
+ return context.getValue(BAGGAGE_KEY) || void 0;
8351
+ }
8352
+ /**
8353
+ * Retrieve the current baggage from the active/current context
8354
+ *
8355
+ * @returns {Baggage} Extracted baggage from the context
8356
+ */
8357
+ function getActiveBaggage() {
8358
+ return getBaggage(ContextAPI.getInstance().active());
8359
+ }
8360
+ /**
8361
+ * Store a baggage in the given context
8362
+ *
8363
+ * @param {Context} Context that manage all context values
8364
+ * @param {Baggage} baggage that will be set in the actual context
8365
+ */
8366
+ function setBaggage(context, baggage) {
8367
+ return context.setValue(BAGGAGE_KEY, baggage);
8368
+ }
8369
+ /**
8370
+ * Delete the baggage stored in the given context
8371
+ *
8372
+ * @param {Context} Context that manage all context values
8373
+ */
8374
+ function deleteBaggage(context) {
8375
+ return context.deleteValue(BAGGAGE_KEY);
8376
+ }
8377
+ var BAGGAGE_KEY;
8378
+ var init_context_helpers = __esmMin((() => {
8379
+ init_context();
8380
+ init_context$1();
8381
+ BAGGAGE_KEY = createContextKey("OpenTelemetry Baggage Key");
8382
+ }));
8383
+ //#endregion
8384
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/api/propagation.js
8385
+ var API_NAME$1, NOOP_TEXT_MAP_PROPAGATOR, PropagationAPI;
8386
+ var init_propagation = __esmMin((() => {
8387
+ init_global_utils();
8388
+ init_NoopTextMapPropagator();
8389
+ init_TextMapPropagator();
8390
+ init_context_helpers();
8391
+ init_utils$1();
8392
+ init_diag();
8393
+ API_NAME$1 = "propagation";
8394
+ NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator();
8395
+ PropagationAPI = class PropagationAPI {
8396
+ /** Empty private constructor prevents end users from constructing a new instance of the API */
8397
+ constructor() {
8398
+ this.createBaggage = createBaggage;
8399
+ this.getBaggage = getBaggage;
8400
+ this.getActiveBaggage = getActiveBaggage;
8401
+ this.setBaggage = setBaggage;
8402
+ this.deleteBaggage = deleteBaggage;
8403
+ }
8404
+ /** Get the singleton instance of the Propagator API */
8405
+ static getInstance() {
8406
+ if (!this._instance) this._instance = new PropagationAPI();
8407
+ return this._instance;
8408
+ }
8409
+ /**
8410
+ * Set the current propagator.
8411
+ *
8412
+ * @returns true if the propagator was successfully registered, else false
8413
+ */
8414
+ setGlobalPropagator(propagator) {
8415
+ return registerGlobal(API_NAME$1, propagator, DiagAPI.instance());
8416
+ }
8417
+ /**
8418
+ * Inject context into a carrier to be propagated inter-process
8419
+ *
8420
+ * @param context Context carrying tracing data to inject
8421
+ * @param carrier carrier to inject context into
8422
+ * @param setter Function used to set values on the carrier
8423
+ */
8424
+ inject(context, carrier, setter = defaultTextMapSetter) {
8425
+ return this._getGlobalPropagator().inject(context, carrier, setter);
8426
+ }
8427
+ /**
8428
+ * Extract context from a carrier
8429
+ *
8430
+ * @param context Context which the newly created context will inherit from
8431
+ * @param carrier Carrier to extract context from
8432
+ * @param getter Function used to extract keys from a carrier
8433
+ */
8434
+ extract(context, carrier, getter = defaultTextMapGetter) {
8435
+ return this._getGlobalPropagator().extract(context, carrier, getter);
8436
+ }
8437
+ /**
8438
+ * Return a list of all fields which may be used by the propagator.
8439
+ */
8440
+ fields() {
8441
+ return this._getGlobalPropagator().fields();
8442
+ }
8443
+ /** Remove the global propagator */
8444
+ disable() {
8445
+ unregisterGlobal(API_NAME$1, DiagAPI.instance());
8446
+ }
8447
+ _getGlobalPropagator() {
8448
+ return getGlobal(API_NAME$1) || NOOP_TEXT_MAP_PROPAGATOR;
8449
+ }
8450
+ };
8451
+ }));
8452
+ //#endregion
8453
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/propagation-api.js
8454
+ var propagation;
8455
+ var init_propagation_api = __esmMin((() => {
8456
+ init_propagation();
8457
+ propagation = PropagationAPI.getInstance();
8458
+ }));
8459
+ //#endregion
8460
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/api/trace.js
8461
+ var API_NAME, TraceAPI;
8462
+ var init_trace = __esmMin((() => {
8463
+ init_global_utils();
8464
+ init_ProxyTracerProvider();
8465
+ init_spancontext_utils();
8466
+ init_context_utils();
8467
+ init_diag();
8468
+ API_NAME = "trace";
8469
+ TraceAPI = class TraceAPI {
8470
+ /** Empty private constructor prevents end users from constructing a new instance of the API */
8471
+ constructor() {
8472
+ this._proxyTracerProvider = new ProxyTracerProvider();
8473
+ this.wrapSpanContext = wrapSpanContext;
8474
+ this.isSpanContextValid = isSpanContextValid;
8475
+ this.deleteSpan = deleteSpan;
8476
+ this.getSpan = getSpan;
8477
+ this.getActiveSpan = getActiveSpan;
8478
+ this.getSpanContext = getSpanContext;
8479
+ this.setSpan = setSpan;
8480
+ this.setSpanContext = setSpanContext;
8481
+ }
8482
+ /** Get the singleton instance of the Trace API */
8483
+ static getInstance() {
8484
+ if (!this._instance) this._instance = new TraceAPI();
8485
+ return this._instance;
8486
+ }
8487
+ /**
8488
+ * Set the current global tracer.
8489
+ *
8490
+ * @returns true if the tracer provider was successfully registered, else false
8491
+ */
8492
+ setGlobalTracerProvider(provider) {
8493
+ const success = registerGlobal(API_NAME, this._proxyTracerProvider, DiagAPI.instance());
8494
+ if (success) this._proxyTracerProvider.setDelegate(provider);
8495
+ return success;
8496
+ }
8497
+ /**
8498
+ * Returns the global tracer provider.
8499
+ */
8500
+ getTracerProvider() {
8501
+ return getGlobal(API_NAME) || this._proxyTracerProvider;
8502
+ }
8503
+ /**
8504
+ * Returns a tracer from the global tracer provider.
8505
+ */
8506
+ getTracer(name, version) {
8507
+ return this.getTracerProvider().getTracer(name, version);
8508
+ }
8509
+ /** Remove the global tracer provider */
8510
+ disable() {
8511
+ unregisterGlobal(API_NAME, DiagAPI.instance());
8512
+ this._proxyTracerProvider = new ProxyTracerProvider();
8513
+ }
8514
+ };
8515
+ }));
8516
+ //#endregion
8517
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/trace-api.js
8518
+ var trace;
8519
+ var init_trace_api = __esmMin((() => {
8520
+ init_trace();
8521
+ trace = TraceAPI.getInstance();
8522
+ }));
8523
+ //#endregion
8524
+ //#region ../../../../node_modules/@opentelemetry/api/build/esm/index.js
8525
+ var esm_exports = /* @__PURE__ */ __exportAll({
8526
+ DiagConsoleLogger: () => DiagConsoleLogger,
8527
+ DiagLogLevel: () => DiagLogLevel,
8528
+ INVALID_SPANID: () => INVALID_SPANID,
8529
+ INVALID_SPAN_CONTEXT: () => INVALID_SPAN_CONTEXT,
8530
+ INVALID_TRACEID: () => INVALID_TRACEID,
8531
+ ProxyTracer: () => ProxyTracer,
8532
+ ProxyTracerProvider: () => ProxyTracerProvider,
8533
+ ROOT_CONTEXT: () => ROOT_CONTEXT,
8534
+ SamplingDecision: () => SamplingDecision,
8535
+ SpanKind: () => SpanKind,
8536
+ SpanStatusCode: () => SpanStatusCode,
8537
+ TraceFlags: () => TraceFlags,
8538
+ ValueType: () => ValueType,
8539
+ baggageEntryMetadataFromString: () => baggageEntryMetadataFromString,
8540
+ context: () => context,
8541
+ createContextKey: () => createContextKey,
8542
+ createNoopMeter: () => createNoopMeter,
8543
+ createTraceState: () => createTraceState,
8544
+ default: () => esm_default,
8545
+ defaultTextMapGetter: () => defaultTextMapGetter,
8546
+ defaultTextMapSetter: () => defaultTextMapSetter,
8547
+ diag: () => diag,
8548
+ isSpanContextValid: () => isSpanContextValid,
8549
+ isValidSpanId: () => isValidSpanId,
8550
+ isValidTraceId: () => isValidTraceId,
8551
+ metrics: () => metrics,
8552
+ propagation: () => propagation,
8553
+ trace: () => trace
8554
+ });
8555
+ var esm_default;
8556
+ var init_esm = __esmMin((() => {
8557
+ init_utils$1();
8558
+ init_context$1();
8559
+ init_consoleLogger();
8560
+ init_types();
8561
+ init_NoopMeter();
8562
+ init_Metric();
8563
+ init_TextMapPropagator();
8564
+ init_ProxyTracer();
8565
+ init_ProxyTracerProvider();
8566
+ init_SamplingResult();
8567
+ init_span_kind();
8568
+ init_status();
8569
+ init_trace_flags();
8570
+ init_utils();
8571
+ init_spancontext_utils();
8572
+ init_invalid_span_constants();
8573
+ init_context_api();
8574
+ init_diag_api();
8575
+ init_metrics_api();
8576
+ init_propagation_api();
8577
+ init_trace_api();
8578
+ esm_default = {
8579
+ context,
8580
+ diag,
8581
+ metrics,
8582
+ propagation,
8583
+ trace
8584
+ };
8585
+ }));
8586
+ //#endregion
7050
8587
  //#region src/utils/opentelemetry-trace.ts
7051
8588
  let cachedGetter = void 0;
7052
8589
  function createGetter() {
7053
8590
  try {
7054
- const api = require("@opentelemetry/api");
8591
+ const api = (init_esm(), __toCommonJS(esm_exports));
7055
8592
  return () => {
7056
8593
  const span = api.trace?.getSpan?.(api.context?.active?.());
7057
8594
  if (!span) return {};
@@ -7073,7 +8610,7 @@ function getOpenTelemetryTraceIds() {
7073
8610
  //#region src/core/trace-context.storage.ts
7074
8611
  const traceContextStorage = new async_hooks.AsyncLocalStorage();
7075
8612
  //#endregion
7076
- //#region \0@oxc-project+runtime@0.122.0/helpers/decorate.js
8613
+ //#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorate.js
7077
8614
  function __decorate(decorators, target, key, desc) {
7078
8615
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7079
8616
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -7107,13 +8644,12 @@ let TraceContextService = class TraceContextService {
7107
8644
  };
7108
8645
  TraceContextService = __decorate([(0, _nestjs_common.Injectable)()], TraceContextService);
7109
8646
  //#endregion
7110
- //#region \0@oxc-project+runtime@0.122.0/helpers/decorateMetadata.js
8647
+ //#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorateMetadata.js
7111
8648
  function __decorateMetadata(k, v) {
7112
8649
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
7113
8650
  }
7114
8651
  //#endregion
7115
8652
  //#region src/core/logger.service.ts
7116
- var _ref$2;
7117
8653
  const PINO_LEVEL_TO_LOG_LEVEL = {
7118
8654
  60: "error",
7119
8655
  50: "error",
@@ -7123,6 +8659,11 @@ const PINO_LEVEL_TO_LOG_LEVEL = {
7123
8659
  10: "verbose"
7124
8660
  };
7125
8661
  let LoggerService = class LoggerService {
8662
+ config;
8663
+ formatter;
8664
+ writer;
8665
+ contextResolver;
8666
+ traceContextService;
7126
8667
  context;
7127
8668
  constructor(config, formatter, writer, contextResolver, traceContextService) {
7128
8669
  this.config = config;
@@ -7192,10 +8733,10 @@ LoggerService = __decorate([(0, _nestjs_common.Injectable)(), __decorateMetadata
7192
8733
  Object,
7193
8734
  Object,
7194
8735
  Object,
7195
- typeof (_ref$2 = typeof TraceContextService !== "undefined" && TraceContextService) === "function" ? _ref$2 : Object
8736
+ typeof TraceContextService === "undefined" ? Object : TraceContextService
7196
8737
  ])], LoggerService);
7197
8738
  //#endregion
7198
- //#region \0@oxc-project+runtime@0.122.0/helpers/decorateParam.js
8739
+ //#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorateParam.js
7199
8740
  function __decorateParam(paramIndex, decorator) {
7200
8741
  return function(target, key) {
7201
8742
  decorator(target, key, paramIndex);
@@ -7203,8 +8744,12 @@ function __decorateParam(paramIndex, decorator) {
7203
8744
  }
7204
8745
  //#endregion
7205
8746
  //#region src/core/http-logger.interceptor.ts
7206
- var _ref$1, _ref2$1;
7207
8747
  let HttpLoggerInterceptor = class HttpLoggerInterceptor {
8748
+ logger;
8749
+ dataSanitizer;
8750
+ requestIdGenerator;
8751
+ config;
8752
+ reflector;
7208
8753
  hostname = (0, os.hostname)();
7209
8754
  pid = process.pid;
7210
8755
  constructor(logger, dataSanitizer, requestIdGenerator, config, reflector) {
@@ -7354,11 +8899,11 @@ HttpLoggerInterceptor = __decorate([
7354
8899
  (0, _nestjs_common.Injectable)(),
7355
8900
  __decorateParam(3, (0, _nestjs_common.Inject)(LOGGER_CONFIG_TOKEN)),
7356
8901
  __decorateMetadata("design:paramtypes", [
7357
- typeof (_ref$1 = typeof LoggerService !== "undefined" && LoggerService) === "function" ? _ref$1 : Object,
8902
+ typeof LoggerService === "undefined" ? Object : LoggerService,
7358
8903
  Object,
7359
8904
  Object,
7360
8905
  Object,
7361
- typeof (_ref2$1 = typeof _nestjs_core.Reflector !== "undefined" && _nestjs_core.Reflector) === "function" ? _ref2$1 : Object
8906
+ typeof _nestjs_core.Reflector === "undefined" ? Object : _nestjs_core.Reflector
7362
8907
  ])
7363
8908
  ], HttpLoggerInterceptor);
7364
8909
  //#endregion
@@ -7381,6 +8926,7 @@ const getAllContextTokens = () => {
7381
8926
  //#endregion
7382
8927
  //#region src/formatters/base-formatter.ts
7383
8928
  var BaseFormatter = class {
8929
+ options;
7384
8930
  constructor(options) {
7385
8931
  this.options = options;
7386
8932
  }
@@ -7614,8 +9160,12 @@ let ConsoleWriter = class ConsoleWriter {
7614
9160
  ConsoleWriter = __decorate([(0, _nestjs_common.Injectable)()], ConsoleWriter);
7615
9161
  //#endregion
7616
9162
  //#region src/factories/dynamic-context-logger.factory.ts
7617
- var _ref, _ref2, _ref3, _ref4;
7618
9163
  let DynamicContextLoggerFactory = class DynamicContextLoggerFactory {
9164
+ config;
9165
+ formatterFactory;
9166
+ writer;
9167
+ contextResolver;
9168
+ traceContextService;
7619
9169
  loggerCache = /* @__PURE__ */ new Map();
7620
9170
  constructor(config, formatterFactory, writer, contextResolver, traceContextService) {
7621
9171
  this.config = config;
@@ -7642,15 +9192,16 @@ DynamicContextLoggerFactory = __decorate([
7642
9192
  __decorateParam(0, (0, _nestjs_common.Inject)(LOGGER_CONFIG_TOKEN)),
7643
9193
  __decorateMetadata("design:paramtypes", [
7644
9194
  Object,
7645
- typeof (_ref = typeof FormatterFactory !== "undefined" && FormatterFactory) === "function" ? _ref : Object,
7646
- typeof (_ref2 = typeof ConsoleWriter !== "undefined" && ConsoleWriter) === "function" ? _ref2 : Object,
7647
- typeof (_ref3 = typeof ContextResolver !== "undefined" && ContextResolver) === "function" ? _ref3 : Object,
7648
- typeof (_ref4 = typeof TraceContextService !== "undefined" && TraceContextService) === "function" ? _ref4 : Object
9195
+ typeof FormatterFactory === "undefined" ? Object : FormatterFactory,
9196
+ typeof ConsoleWriter === "undefined" ? Object : ConsoleWriter,
9197
+ typeof ContextResolver === "undefined" ? Object : ContextResolver,
9198
+ typeof TraceContextService === "undefined" ? Object : TraceContextService
7649
9199
  ])
7650
9200
  ], DynamicContextLoggerFactory);
7651
9201
  //#endregion
7652
9202
  //#region src/utils/data-sanitizer.ts
7653
9203
  let DataSanitizer = class DataSanitizer {
9204
+ sensitiveFields;
7654
9205
  redactedValue = "[REDACTED]";
7655
9206
  constructor(sensitiveFields) {
7656
9207
  this.sensitiveFields = sensitiveFields;