@synnaxlabs/alamos 0.53.0 → 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,667 +0,0 @@
1
- class h {
2
- _noop = !1;
3
- key;
4
- path;
5
- serviceName;
6
- constructor(e, t, n = "", o = !1) {
7
- this.key = e, this.path = t, this.serviceName = n, this._noop = o;
8
- }
9
- child(e) {
10
- return new h(e, this.extendPath(e), this.serviceName, this.noop);
11
- }
12
- extendPath(e) {
13
- return `${this.path}.${e}`;
14
- }
15
- get noop() {
16
- return this._noop;
17
- }
18
- static NOOP = new h("", "", "");
19
- }
20
- const I = ["debug", "info", "warn", "error"], be = (r) => {
21
- const e = I.indexOf(r);
22
- return ({ level: t }) => I.indexOf(t) >= e;
23
- }, _e = (r) => {
24
- const { include: e, exclude: t } = r;
25
- return ({ path: n }) => !(e != null && !e.some((o) => n.startsWith(o)) || t != null && t.some((o) => n.startsWith(o)));
26
- };
27
- class _ {
28
- meta = h.NOOP;
29
- filters;
30
- constructor(e = {}) {
31
- const { filters: t = [] } = e;
32
- this.filters = t;
33
- }
34
- filter(e) {
35
- return !this.meta.noop && this.filters.every(
36
- (t) => t({
37
- key: this.meta.key,
38
- path: this.meta.path,
39
- level: e
40
- })
41
- );
42
- }
43
- child(e) {
44
- const t = new _({ filters: this.filters });
45
- return t.meta = e, t;
46
- }
47
- debug(e, t, n = !1) {
48
- !this.filter("debug") && !n || (t == null ? console.log("%cDEBUG", "color: #8c00f0;", this.meta.path, e) : console.log("%cDEBUG", "color: #8c00f0;", this.meta.path, e, b(t)));
49
- }
50
- info(e, t, n = !1) {
51
- !this.filter("info") && !n || (t == null ? console.log("%cINFO", "color: #005eff;", this.meta.path, e) : console.log("%cINFO", "color: #005eff;", this.meta.path, e, b(t)));
52
- }
53
- warn(e, t, n = !1) {
54
- !this.filter("warn") && !n || (t == null ? console.warn("WARN", this.meta.path, e) : console.warn("WARN", this.meta.path, e, b(t)));
55
- }
56
- error(e, t, n = !1) {
57
- !this.filter("error") && !n || (t == null ? console.error("ERROR", this.meta.path, e) : console.error("ERROR", this.meta.path, e, b(t)));
58
- }
59
- static NOOP = new _();
60
- }
61
- const b = (r) => typeof r == "function" ? r() : r;
62
- var $ = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, p = "1.9.0", B = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
63
- function F(r) {
64
- var e = /* @__PURE__ */ new Set([r]), t = /* @__PURE__ */ new Set(), n = r.match(B);
65
- if (!n)
66
- return function() {
67
- return !1;
68
- };
69
- var o = {
70
- major: +n[1],
71
- minor: +n[2],
72
- patch: +n[3],
73
- prerelease: n[4]
74
- };
75
- if (o.prerelease != null)
76
- return function(u) {
77
- return u === r;
78
- };
79
- function a(s) {
80
- return t.add(s), !1;
81
- }
82
- function i(s) {
83
- return e.add(s), !0;
84
- }
85
- return function(u) {
86
- if (e.has(u))
87
- return !0;
88
- if (t.has(u))
89
- return !1;
90
- var l = u.match(B);
91
- if (!l)
92
- return a(u);
93
- var f = {
94
- major: +l[1],
95
- minor: +l[2],
96
- patch: +l[3],
97
- prerelease: l[4]
98
- };
99
- return f.prerelease != null || o.major !== f.major ? a(u) : o.major === 0 ? o.minor === f.minor && o.patch <= f.patch ? i(u) : a(u) : o.minor <= f.minor ? i(u) : a(u);
100
- };
101
- }
102
- var V = F(p), k = p.split(".")[0], g = /* @__PURE__ */ Symbol.for("opentelemetry.js.api." + k), v = $;
103
- function x(r, e, t, n) {
104
- var o;
105
- n === void 0 && (n = !1);
106
- var a = v[g] = (o = v[g]) !== null && o !== void 0 ? o : {
107
- version: p
108
- };
109
- if (!n && a[r]) {
110
- var i = new Error("@opentelemetry/api: Attempted duplicate registration of API: " + r);
111
- return t.error(i.stack || i.message), !1;
112
- }
113
- if (a.version !== p) {
114
- var i = new Error("@opentelemetry/api: Registration of version v" + a.version + " for " + r + " does not match previously registered API v" + p);
115
- return t.error(i.stack || i.message), !1;
116
- }
117
- return a[r] = e, t.debug("@opentelemetry/api: Registered a global for " + r + " v" + p + "."), !0;
118
- }
119
- function y(r) {
120
- var e, t, n = (e = v[g]) === null || e === void 0 ? void 0 : e.version;
121
- if (!(!n || !V(n)))
122
- return (t = v[g]) === null || t === void 0 ? void 0 : t[r];
123
- }
124
- function P(r, e) {
125
- e.debug("@opentelemetry/api: Unregistering a global for " + r + " v" + p + ".");
126
- var t = v[g];
127
- t && delete t[r];
128
- }
129
- var K = function(r, e) {
130
- var t = typeof Symbol == "function" && r[Symbol.iterator];
131
- if (!t) return r;
132
- var n = t.call(r), o, a = [], i;
133
- try {
134
- for (; (e === void 0 || e-- > 0) && !(o = n.next()).done; ) a.push(o.value);
135
- } catch (s) {
136
- i = { error: s };
137
- } finally {
138
- try {
139
- o && !o.done && (t = n.return) && t.call(n);
140
- } finally {
141
- if (i) throw i.error;
142
- }
143
- }
144
- return a;
145
- }, U = function(r, e, t) {
146
- if (t || arguments.length === 2) for (var n = 0, o = e.length, a; n < o; n++)
147
- (a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
148
- return r.concat(a || Array.prototype.slice.call(e));
149
- }, W = (
150
- /** @class */
151
- (function() {
152
- function r(e) {
153
- this._namespace = e.namespace || "DiagComponentLogger";
154
- }
155
- return r.prototype.debug = function() {
156
- for (var e = [], t = 0; t < arguments.length; t++)
157
- e[t] = arguments[t];
158
- return d("debug", this._namespace, e);
159
- }, r.prototype.error = function() {
160
- for (var e = [], t = 0; t < arguments.length; t++)
161
- e[t] = arguments[t];
162
- return d("error", this._namespace, e);
163
- }, r.prototype.info = function() {
164
- for (var e = [], t = 0; t < arguments.length; t++)
165
- e[t] = arguments[t];
166
- return d("info", this._namespace, e);
167
- }, r.prototype.warn = function() {
168
- for (var e = [], t = 0; t < arguments.length; t++)
169
- e[t] = arguments[t];
170
- return d("warn", this._namespace, e);
171
- }, r.prototype.verbose = function() {
172
- for (var e = [], t = 0; t < arguments.length; t++)
173
- e[t] = arguments[t];
174
- return d("verbose", this._namespace, e);
175
- }, r;
176
- })()
177
- );
178
- function d(r, e, t) {
179
- var n = y("diag");
180
- if (n)
181
- return t.unshift(e), n[r].apply(n, U([], K(t), !1));
182
- }
183
- var c;
184
- (function(r) {
185
- r[r.NONE = 0] = "NONE", r[r.ERROR = 30] = "ERROR", r[r.WARN = 50] = "WARN", r[r.INFO = 60] = "INFO", r[r.DEBUG = 70] = "DEBUG", r[r.VERBOSE = 80] = "VERBOSE", r[r.ALL = 9999] = "ALL";
186
- })(c || (c = {}));
187
- function X(r, e) {
188
- r < c.NONE ? r = c.NONE : r > c.ALL && (r = c.ALL), e = e || {};
189
- function t(n, o) {
190
- var a = e[n];
191
- return typeof a == "function" && r >= o ? a.bind(e) : function() {
192
- };
193
- }
194
- return {
195
- error: t("error", c.ERROR),
196
- warn: t("warn", c.WARN),
197
- info: t("info", c.INFO),
198
- debug: t("debug", c.DEBUG),
199
- verbose: t("verbose", c.VERBOSE)
200
- };
201
- }
202
- var Y = function(r, e) {
203
- var t = typeof Symbol == "function" && r[Symbol.iterator];
204
- if (!t) return r;
205
- var n = t.call(r), o, a = [], i;
206
- try {
207
- for (; (e === void 0 || e-- > 0) && !(o = n.next()).done; ) a.push(o.value);
208
- } catch (s) {
209
- i = { error: s };
210
- } finally {
211
- try {
212
- o && !o.done && (t = n.return) && t.call(n);
213
- } finally {
214
- if (i) throw i.error;
215
- }
216
- }
217
- return a;
218
- }, D = function(r, e, t) {
219
- if (t || arguments.length === 2) for (var n = 0, o = e.length, a; n < o; n++)
220
- (a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
221
- return r.concat(a || Array.prototype.slice.call(e));
222
- }, q = "diag", m = (
223
- /** @class */
224
- (function() {
225
- function r() {
226
- function e(o) {
227
- return function() {
228
- for (var a = [], i = 0; i < arguments.length; i++)
229
- a[i] = arguments[i];
230
- var s = y("diag");
231
- if (s)
232
- return s[o].apply(s, D([], Y(a), !1));
233
- };
234
- }
235
- var t = this, n = function(o, a) {
236
- var i, s, u;
237
- if (a === void 0 && (a = { logLevel: c.INFO }), o === t) {
238
- var l = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
239
- return t.error((i = l.stack) !== null && i !== void 0 ? i : l.message), !1;
240
- }
241
- typeof a == "number" && (a = {
242
- logLevel: a
243
- });
244
- var f = y("diag"), T = X((s = a.logLevel) !== null && s !== void 0 ? s : c.INFO, o);
245
- if (f && !a.suppressOverrideMessage) {
246
- var C = (u = new Error().stack) !== null && u !== void 0 ? u : "<failed to generate stacktrace>";
247
- f.warn("Current logger will be overwritten from " + C), T.warn("Current logger will overwrite one already registered from " + C);
248
- }
249
- return x("diag", T, t, !0);
250
- };
251
- t.setLogger = n, t.disable = function() {
252
- P(q, t);
253
- }, t.createComponentLogger = function(o) {
254
- return new W(o);
255
- }, t.verbose = e("verbose"), t.debug = e("debug"), t.info = e("info"), t.warn = e("warn"), t.error = e("error");
256
- }
257
- return r.instance = function() {
258
- return this._instance || (this._instance = new r()), this._instance;
259
- }, r;
260
- })()
261
- ), z = function(r, e) {
262
- var t = typeof Symbol == "function" && r[Symbol.iterator];
263
- if (!t) return r;
264
- var n = t.call(r), o, a = [], i;
265
- try {
266
- for (; (e === void 0 || e-- > 0) && !(o = n.next()).done; ) a.push(o.value);
267
- } catch (s) {
268
- i = { error: s };
269
- } finally {
270
- try {
271
- o && !o.done && (t = n.return) && t.call(n);
272
- } finally {
273
- if (i) throw i.error;
274
- }
275
- }
276
- return a;
277
- }, H = function(r) {
278
- var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
279
- if (t) return t.call(r);
280
- if (r && typeof r.length == "number") return {
281
- next: function() {
282
- return r && n >= r.length && (r = void 0), { value: r && r[n++], done: !r };
283
- }
284
- };
285
- throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
286
- }, J = (
287
- /** @class */
288
- (function() {
289
- function r(e) {
290
- this._entries = e ? new Map(e) : /* @__PURE__ */ new Map();
291
- }
292
- return r.prototype.getEntry = function(e) {
293
- var t = this._entries.get(e);
294
- if (t)
295
- return Object.assign({}, t);
296
- }, r.prototype.getAllEntries = function() {
297
- return Array.from(this._entries.entries()).map(function(e) {
298
- var t = z(e, 2), n = t[0], o = t[1];
299
- return [n, o];
300
- });
301
- }, r.prototype.setEntry = function(e, t) {
302
- var n = new r(this._entries);
303
- return n._entries.set(e, t), n;
304
- }, r.prototype.removeEntry = function(e) {
305
- var t = new r(this._entries);
306
- return t._entries.delete(e), t;
307
- }, r.prototype.removeEntries = function() {
308
- for (var e, t, n = [], o = 0; o < arguments.length; o++)
309
- n[o] = arguments[o];
310
- var a = new r(this._entries);
311
- try {
312
- for (var i = H(n), s = i.next(); !s.done; s = i.next()) {
313
- var u = s.value;
314
- a._entries.delete(u);
315
- }
316
- } catch (l) {
317
- e = { error: l };
318
- } finally {
319
- try {
320
- s && !s.done && (t = i.return) && t.call(i);
321
- } finally {
322
- if (e) throw e.error;
323
- }
324
- }
325
- return a;
326
- }, r.prototype.clear = function() {
327
- return new r();
328
- }, r;
329
- })()
330
- );
331
- m.instance();
332
- function Q(r) {
333
- return r === void 0 && (r = {}), new J(new Map(Object.entries(r)));
334
- }
335
- function Z(r) {
336
- return Symbol.for(r);
337
- }
338
- var L = (
339
- /** @class */
340
- /* @__PURE__ */ (function() {
341
- function r(e) {
342
- var t = this;
343
- t._currentContext = e ? new Map(e) : /* @__PURE__ */ new Map(), t.getValue = function(n) {
344
- return t._currentContext.get(n);
345
- }, t.setValue = function(n, o) {
346
- var a = new r(t._currentContext);
347
- return a._currentContext.set(n, o), a;
348
- }, t.deleteValue = function(n) {
349
- var o = new r(t._currentContext);
350
- return o._currentContext.delete(n), o;
351
- };
352
- }
353
- return r;
354
- })()
355
- ), ee = new L(), te = {
356
- get: function(r, e) {
357
- if (r != null)
358
- return r[e];
359
- },
360
- keys: function(r) {
361
- return r == null ? [] : Object.keys(r);
362
- }
363
- }, re = {
364
- set: function(r, e, t) {
365
- r != null && (r[e] = t);
366
- }
367
- }, ne = function(r, e) {
368
- var t = typeof Symbol == "function" && r[Symbol.iterator];
369
- if (!t) return r;
370
- var n = t.call(r), o, a = [], i;
371
- try {
372
- for (; (e === void 0 || e-- > 0) && !(o = n.next()).done; ) a.push(o.value);
373
- } catch (s) {
374
- i = { error: s };
375
- } finally {
376
- try {
377
- o && !o.done && (t = n.return) && t.call(n);
378
- } finally {
379
- if (i) throw i.error;
380
- }
381
- }
382
- return a;
383
- }, ae = function(r, e, t) {
384
- if (t || arguments.length === 2) for (var n = 0, o = e.length, a; n < o; n++)
385
- (a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
386
- return r.concat(a || Array.prototype.slice.call(e));
387
- }, oe = (
388
- /** @class */
389
- (function() {
390
- function r() {
391
- }
392
- return r.prototype.active = function() {
393
- return ee;
394
- }, r.prototype.with = function(e, t, n) {
395
- for (var o = [], a = 3; a < arguments.length; a++)
396
- o[a - 3] = arguments[a];
397
- return t.call.apply(t, ae([n], ne(o), !1));
398
- }, r.prototype.bind = function(e, t) {
399
- return t;
400
- }, r.prototype.enable = function() {
401
- return this;
402
- }, r.prototype.disable = function() {
403
- return this;
404
- }, r;
405
- })()
406
- ), ie = function(r, e) {
407
- var t = typeof Symbol == "function" && r[Symbol.iterator];
408
- if (!t) return r;
409
- var n = t.call(r), o, a = [], i;
410
- try {
411
- for (; (e === void 0 || e-- > 0) && !(o = n.next()).done; ) a.push(o.value);
412
- } catch (s) {
413
- i = { error: s };
414
- } finally {
415
- try {
416
- o && !o.done && (t = n.return) && t.call(n);
417
- } finally {
418
- if (i) throw i.error;
419
- }
420
- }
421
- return a;
422
- }, se = function(r, e, t) {
423
- if (t || arguments.length === 2) for (var n = 0, o = e.length, a; n < o; n++)
424
- (a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
425
- return r.concat(a || Array.prototype.slice.call(e));
426
- }, E = "context", ue = new oe(), G = (
427
- /** @class */
428
- (function() {
429
- function r() {
430
- }
431
- return r.getInstance = function() {
432
- return this._instance || (this._instance = new r()), this._instance;
433
- }, r.prototype.setGlobalContextManager = function(e) {
434
- return x(E, e, m.instance());
435
- }, r.prototype.active = function() {
436
- return this._getContextManager().active();
437
- }, r.prototype.with = function(e, t, n) {
438
- for (var o, a = [], i = 3; i < arguments.length; i++)
439
- a[i - 3] = arguments[i];
440
- return (o = this._getContextManager()).with.apply(o, se([e, t, n], ie(a), !1));
441
- }, r.prototype.bind = function(e, t) {
442
- return this._getContextManager().bind(e, t);
443
- }, r.prototype._getContextManager = function() {
444
- return y(E) || ue;
445
- }, r.prototype.disable = function() {
446
- this._getContextManager().disable(), P(E, m.instance());
447
- }, r;
448
- })()
449
- ), N;
450
- (function(r) {
451
- r[r.UNSET = 0] = "UNSET", r[r.OK = 1] = "OK", r[r.ERROR = 2] = "ERROR";
452
- })(N || (N = {}));
453
- var ce = G.getInstance(), le = (
454
- /** @class */
455
- (function() {
456
- function r() {
457
- }
458
- return r.prototype.inject = function(e, t) {
459
- }, r.prototype.extract = function(e, t) {
460
- return e;
461
- }, r.prototype.fields = function() {
462
- return [];
463
- }, r;
464
- })()
465
- ), R = Z("OpenTelemetry Baggage Key");
466
- function j(r) {
467
- return r.getValue(R) || void 0;
468
- }
469
- function fe() {
470
- return j(G.getInstance().active());
471
- }
472
- function pe(r, e) {
473
- return r.setValue(R, e);
474
- }
475
- function he(r) {
476
- return r.deleteValue(R);
477
- }
478
- var A = "propagation", de = new le(), ge = (
479
- /** @class */
480
- (function() {
481
- function r() {
482
- this.createBaggage = Q, this.getBaggage = j, this.getActiveBaggage = fe, this.setBaggage = pe, this.deleteBaggage = he;
483
- }
484
- return r.getInstance = function() {
485
- return this._instance || (this._instance = new r()), this._instance;
486
- }, r.prototype.setGlobalPropagator = function(e) {
487
- return x(A, e, m.instance());
488
- }, r.prototype.inject = function(e, t, n) {
489
- return n === void 0 && (n = re), this._getGlobalPropagator().inject(e, t, n);
490
- }, r.prototype.extract = function(e, t, n) {
491
- return n === void 0 && (n = te), this._getGlobalPropagator().extract(e, t, n);
492
- }, r.prototype.fields = function() {
493
- return this._getGlobalPropagator().fields();
494
- }, r.prototype.disable = function() {
495
- P(A, m.instance());
496
- }, r.prototype._getGlobalPropagator = function() {
497
- return y(A) || de;
498
- }, r;
499
- })()
500
- ), ve = ge.getInstance();
501
- const M = ["bench", "debug", "prod"], ye = (r) => (e) => M.indexOf(e) >= M.indexOf(r);
502
- class w {
503
- meta = h.NOOP;
504
- otelTracer;
505
- filter;
506
- constructor(e, t = ye("debug")) {
507
- this.otelTracer = e, this.filter = t;
508
- }
509
- child(e) {
510
- const t = new w(this.otelTracer, this.filter);
511
- return t.meta = e, t;
512
- }
513
- /**
514
- * Starts a new span in the debug environment. If a span already exists in the
515
- * current context, it will be used as the parent span.
516
- *
517
- * @param key - The name of the span.
518
- * @param f - The function to run under the span.
519
- * @returns A span that tracks program execution. If the Tracer's environment
520
- * rejects the 'debug' environment or the Tracer is noop, a NoopSpan is returned.
521
- */
522
- debug(e, t) {
523
- return this.trace(e, "debug", t);
524
- }
525
- /**
526
- * Starts a new span in the bench environment. If a span already exists in the
527
- * current context, it will be used as the parent span.
528
- *
529
- * @param key - The name of the span.
530
- * @param f - The function to run under the span.
531
- * @returns A span that tracks program execution. If the Tracer's environment
532
- * rejects the 'bench' environment or the Tracer is noop, a NoopSpan is returned.
533
- */
534
- bench(e, t) {
535
- return this.trace(e, "bench", t);
536
- }
537
- /**
538
- * Starts a new span in the prod environment. If a span already exists in the
539
- * current context, it will be used as the parent span.
540
- *
541
- * @param key - The name of the span.
542
- * @param f - The function to run under the span.
543
- * @returns A span that tracks program execution. If the Tracer's environment
544
- * rejects the 'prod' environment or the Tracer is noop, a NoopSpan is returned.
545
- */
546
- prod(e, t) {
547
- return this.trace(e, "prod", t);
548
- }
549
- /**
550
- * Stars a new span with the given key and environment. If a span already
551
- * exists in the current context, it will be used as the parent span.
552
- *
553
- * @param key - The name of the span.
554
- * @param env - The environment to run the span under.
555
- * @param f - The function to run under the span.
556
- * @returns A span that tracks program execution. If the Tracer's environment
557
- * rejects the provided span or the Tracer is noop, a NoopSpan is returned.
558
- */
559
- trace(e, t, n) {
560
- const o = this.meta.noop || !this.filter(t) || this.otelTracer == null;
561
- if (n == null) {
562
- if (o) return () => {
563
- };
564
- const a = new S(e, this.otelTracer.startSpan(e));
565
- return a.start(), () => a.end();
566
- }
567
- return o ? n(new me(e)) : this.otelTracer.startActiveSpan(e, (a) => {
568
- const i = new S(e, a);
569
- return n(i);
570
- });
571
- }
572
- /**
573
- * Injects metadata about the current trace into the provided carrier. This metadata
574
- * can be parsed on the other side of a network or IPC request to allow the trace to
575
- * propagate across services.
576
- *
577
- * @param carrier - The carrier to inject the metadata into.
578
- */
579
- propagate(e) {
580
- if (this.meta.noop) return;
581
- const t = ce.active();
582
- ve.inject(t, e, {
583
- set: (n, o, a) => {
584
- n[o] = a;
585
- }
586
- });
587
- }
588
- /** Tracer implementation that does nothing */
589
- static NOOP = new w();
590
- }
591
- class S {
592
- key;
593
- otel;
594
- constructor(e, t) {
595
- this.key = e, this.otel = t;
596
- }
597
- set(e, t) {
598
- this.otel.setAttribute(e, t);
599
- }
600
- recordError(e) {
601
- e != null && (this.otel.recordException(e), this.otel.setStatus({ code: N.ERROR }));
602
- }
603
- start() {
604
- performance.mark(`alamos.trace.start.${this.key}`);
605
- }
606
- end() {
607
- try {
608
- performance.mark(`alamos.trace.end.${this.key}`);
609
- const e = performance.measure(
610
- `alamos.trace.duration.${this.key}`,
611
- `alamos.trace.start.${this.key}`,
612
- `alamos.trace.end.${this.key}`
613
- );
614
- this.set("duration", e.duration), this.otel.end();
615
- } catch (e) {
616
- console.error(e);
617
- }
618
- }
619
- }
620
- class me {
621
- key;
622
- constructor(e) {
623
- this.key = e;
624
- }
625
- set() {
626
- }
627
- recordError(e) {
628
- }
629
- }
630
- class O {
631
- meta;
632
- T;
633
- L;
634
- constructor({
635
- key: e = "",
636
- serviceName: t = "",
637
- logger: n = _.NOOP,
638
- tracer: o = w.NOOP,
639
- noop: a = !1,
640
- __meta: i
641
- }) {
642
- this.meta = i ?? new h(e, e, t, a), this.T = o.child(this.meta), this.L = n.child(this.meta);
643
- }
644
- child(e) {
645
- const t = this.meta.child(e);
646
- return new O({ __meta: t, tracer: this.T, logger: this.L });
647
- }
648
- static NOOP = new O({ noop: !0 });
649
- }
650
- const we = O.NOOP;
651
- export {
652
- G as C,
653
- m as D,
654
- O as I,
655
- I as L,
656
- we as N,
657
- w as T,
658
- S as _,
659
- _ as a,
660
- me as b,
661
- be as c,
662
- Z as d,
663
- y as g,
664
- _e as l,
665
- x as r,
666
- P as u
667
- };