@synnaxlabs/alamos 0.52.3 → 0.54.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,21 +1,25 @@
1
1
 
2
- > @synnaxlabs/alamos@0.52.3 build /home/runner/work/synnax/synnax/alamos/ts
2
+ > @synnaxlabs/alamos@0.54.0 build /home/runner/work/synnax/synnax/alamos/ts
3
3
  > tsc --noEmit && vite build
4
4
 
5
5
   Synnax - Production mode
6
- vite v7.3.1 building client environment for production...
7
- transforming...
8
- ✓ 54 modules transformed.
6
+ vite v8.0.3 building client environment for production...
7
+ 
9
8
  rendering chunks...
10
9
  
11
10
  [vite:dts] Start generate declaration files...
12
- computing gzip size...
13
- dist/index.js  0.61 kB │ gzip: 0.36 kB
14
- dist/dev.js  5.29 kB │ gzip: 1.50 kB
15
- dist/instrumentation-BvrhwRHI.js 20.59 kB │ gzip: 5.09 kB
16
- [vite:dts] Declaration files built in 2101ms.
11
+ [vite:dts] Declaration files built in 2214ms.
17
12
  
18
- dist/index.cjs  0.74 kB │ gzip: 0.33 kB
19
- dist/dev.cjs  4.09 kB │ gzip: 1.37 kB
20
- dist/instrumentation-BUpiX8Rz.cjs 13.63 kB │ gzip: 4.14 kB
21
- ✓ built in 2.49s
13
+ computing gzip size...
14
+ dist/alamos.js 0.74 kB │ gzip: 0.45 kB
15
+ dist/dev.js 5.01 kB │ gzip: 1.53 kB
16
+ dist/instrumentation-CSKtGJe6.js 12.01 kB │ gzip: 3.72 kB
17
+
18
+ 
19
+ rendering chunks...
20
+ computing gzip size...
21
+ dist/alamos.cjs 0.73 kB │ gzip: 0.38 kB
22
+ dist/dev.cjs 3.53 kB │ gzip: 1.28 kB
23
+ dist/instrumentation-o9cJjaej.cjs 9.77 kB │ gzip: 3.23 kB
24
+
25
+ ✓ built in 2.34s
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};const n=require(`./instrumentation-o9cJjaej.cjs`);var r=t({Instrumentation:()=>n.t,LOG_LEVELS:()=>n.f,Logger:()=>n.p,NOOP:()=>n.n,NoopSpan:()=>n.r,Tracer:()=>n.i,_Span:()=>n.a,logLevelKeyFiler:()=>n.m,logThresholdFilter:()=>n.h});exports.Instrumentation=n.t,exports.LOG_LEVELS=n.f,exports.Logger=n.p,exports.NOOP=n.n,exports.NoopSpan=n.r,exports.Tracer=n.i,exports._Span=n.a,Object.defineProperty(exports,`alamos`,{enumerable:!0,get:function(){return r}}),exports.logLevelKeyFiler=n.m,exports.logThresholdFilter=n.h;
package/dist/alamos.js ADDED
@@ -0,0 +1,22 @@
1
+ import { a as e, f as t, h as n, i as r, m as i, n as a, p as o, r as s, t as c } from "./instrumentation-CSKtGJe6.js";
2
+ //#region \0rolldown/runtime.js
3
+ var l = Object.defineProperty, u = /* @__PURE__ */ ((e, t) => {
4
+ let n = {};
5
+ for (var r in e) l(n, r, {
6
+ get: e[r],
7
+ enumerable: !0
8
+ });
9
+ return t || l(n, Symbol.toStringTag, { value: "Module" }), n;
10
+ })({
11
+ Instrumentation: () => c,
12
+ LOG_LEVELS: () => t,
13
+ Logger: () => o,
14
+ NOOP: () => a,
15
+ NoopSpan: () => s,
16
+ Tracer: () => r,
17
+ _Span: () => e,
18
+ logLevelKeyFiler: () => i,
19
+ logThresholdFilter: () => n
20
+ });
21
+ //#endregion
22
+ export { c as Instrumentation, t as LOG_LEVELS, o as Logger, a as NOOP, s as NoopSpan, r as Tracer, e as _Span, u as alamos, i as logLevelKeyFiler, n as logThresholdFilter };
package/dist/dev.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./instrumentation-BUpiX8Rz.cjs");var v;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(v||(v={}));var T="0000000000000000",S="00000000000000000000000000000000",N={traceId:S,spanId:T,traceFlags:v.NONE},u=(function(){function t(e){e===void 0&&(e=N),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t})(),d=o.createContextKey("OpenTelemetry Context Key SPAN");function l(t){return t.getValue(d)||void 0}function m(){return l(o.ContextAPI.getInstance().active())}function g(t,e){return t.setValue(d,e)}function D(t){return t.deleteValue(d)}function E(t,e){return g(t,new u(e))}function P(t){var e;return(e=l(t))===null||e===void 0?void 0:e.spanContext()}var w=/^([0-9a-f]{32})$/i,C=/^[0-9a-f]{16}$/i;function R(t){return w.test(t)&&t!==S}function b(t){return C.test(t)&&t!==T}function A(t){return R(t.traceId)&&b(t.spanId)}function V(t){return new u(t)}var p=o.ContextAPI.getInstance(),I=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=p.active());var i=!!r?.root;if(i)return new u;var a=n&&P(n);return O(a)&&A(a)?new u(a):new u},t.prototype.startActiveSpan=function(e,r,n,i){var a,c,s;if(!(arguments.length<2)){arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,c=n,s=i);var _=c??p.active(),h=this.startSpan(e,a,_),x=g(_,h);return p.with(x,s,void 0,h)}},t})();function O(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var L=new I,k=(function(){function t(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}return t.prototype.startSpan=function(e,r,n){return this._getTracer().startSpan(e,r,n)},t.prototype.startActiveSpan=function(e,r,n,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):L},t})(),G=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new I},t})(),M=new G,y=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){var i;return(i=this.getDelegateTracer(e,r,n))!==null&&i!==void 0?i:new k(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:M},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,r,n)},t})(),f="trace",K=(function(){function t(){this._proxyTracerProvider=new y,this.wrapSpanContext=V,this.isSpanContextValid=A,this.deleteSpan=D,this.getSpan=l,this.getActiveSpan=m,this.getSpanContext=P,this.setSpan=g,this.setSpanContext=E}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=o.registerGlobal(f,this._proxyTracerProvider,o.DiagAPI.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return o.getGlobal(f)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){o.unregisterGlobal(f,o.DiagAPI.instance()),this._proxyTracerProvider=new y},t})(),X=K.getInstance();const $=()=>{const t="synnax";return new o.Instrumentation({key:"",serviceName:t,logger:new o.Logger,tracer:new o.Tracer(X.getTracerProvider().getTracer("synnax"))})};exports.instrumentation=$;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./instrumentation-o9cJjaej.cjs`);var t;(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(t||={});var n={traceId:`00000000000000000000000000000000`,spanId:`0000000000000000`,traceFlags:t.NONE},r=class{constructor(e=n){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}},i=e.s(`OpenTelemetry Context Key SPAN`);function a(e){return e.getValue(i)||void 0}function o(){return a(e.o.getInstance().active())}function s(e,t){return e.setValue(i,t)}function c(e){return e.deleteValue(i)}function l(e,t){return s(e,new r(t))}function u(e){return a(e)?.spanContext()}var d=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function f(e,t){if(typeof e!=`string`||e.length!==t)return!1;let n=0;for(let t=0;t<e.length;t+=4)n+=(d[e.charCodeAt(t)]|0)+(d[e.charCodeAt(t+1)]|0)+(d[e.charCodeAt(t+2)]|0)+(d[e.charCodeAt(t+3)]|0);return n===t}function p(e){return f(e,32)&&e!==`00000000000000000000000000000000`}function m(e){return f(e,16)&&e!==`0000000000000000`}function h(e){return p(e.traceId)&&m(e.spanId)}function g(e){return new r(e)}var _=e.o.getInstance(),v=class{startSpan(e,t,n=_.active()){if(t?.root)return new r;let i=n&&u(n);return y(i)&&h(i)?new r(i):new r}startActiveSpan(e,t,n,r){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);let c=a??_.active(),l=this.startSpan(e,i,c),u=s(c,l);return _.with(u,o,void 0,l)}};function y(e){return typeof e==`object`&&!!e&&`spanId`in e&&typeof e.spanId==`string`&&`traceId`in e&&typeof e.traceId==`string`&&`traceFlags`in e&&typeof e.traceFlags==`number`}var b=new v,x=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}startSpan(e,t,n){return this._getTracer().startSpan(e,t,n)}startActiveSpan(e,t,n,r){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):b}},S=new class{getTracer(e,t,n){return new v}},C=class{getTracer(e,t,n){return this.getDelegateTracer(e,t,n)??new x(this,e,t,n)}getDelegate(){return this._delegate??S}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,n){return this._delegate?.getTracer(e,t,n)}},w=`trace`,T=class t{constructor(){this._proxyTracerProvider=new C,this.wrapSpanContext=g,this.isSpanContextValid=h,this.deleteSpan=c,this.getSpan=a,this.getActiveSpan=o,this.getSpanContext=u,this.setSpan=s,this.setSpanContext=l}static getInstance(){return this._instance||=new t,this._instance}setGlobalTracerProvider(t){let n=e.u(w,this._proxyTracerProvider,e.c.instance());return n&&this._proxyTracerProvider.setDelegate(t),n}getTracerProvider(){return e.l(w)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){e.d(w,e.c.instance()),this._proxyTracerProvider=new C}}.getInstance(),E=()=>new e.t({key:``,serviceName:`synnax`,logger:new e.p,tracer:new e.i(T.getTracerProvider().getTracer(`synnax`))});exports.instrumentation=E;
package/dist/dev.js CHANGED
@@ -1,172 +1,269 @@
1
- import { C as T, d as m, r as D, D as h, g as E, u as w, I as C, T as R, a as V } from "./instrumentation-BvrhwRHI.js";
2
- var f;
3
- (function(t) {
4
- t[t.NONE = 0] = "NONE", t[t.SAMPLED = 1] = "SAMPLED";
5
- })(f || (f = {}));
6
- var S = "0000000000000000", P = "00000000000000000000000000000000", b = {
7
- traceId: P,
8
- spanId: S,
9
- traceFlags: f.NONE
10
- }, i = (
11
- /** @class */
12
- (function() {
13
- function t(e) {
14
- e === void 0 && (e = b), this._spanContext = e;
15
- }
16
- return t.prototype.spanContext = function() {
17
- return this._spanContext;
18
- }, t.prototype.setAttribute = function(e, r) {
19
- return this;
20
- }, t.prototype.setAttributes = function(e) {
21
- return this;
22
- }, t.prototype.addEvent = function(e, r) {
23
- return this;
24
- }, t.prototype.addLink = function(e) {
25
- return this;
26
- }, t.prototype.addLinks = function(e) {
27
- return this;
28
- }, t.prototype.setStatus = function(e) {
29
- return this;
30
- }, t.prototype.updateName = function(e) {
31
- return this;
32
- }, t.prototype.end = function(e) {
33
- }, t.prototype.isRecording = function() {
34
- return !1;
35
- }, t.prototype.recordException = function(e, r) {
36
- }, t;
37
- })()
38
- ), v = m("OpenTelemetry Context Key SPAN");
39
- function d(t) {
40
- return t.getValue(v) || void 0;
1
+ import { c as e, d as t, i as n, l as r, o as i, p as a, s as o, t as s, u as c } from "./instrumentation-CSKtGJe6.js";
2
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js
3
+ var l;
4
+ (function(e) {
5
+ e[e.NONE = 0] = "NONE", e[e.SAMPLED = 1] = "SAMPLED";
6
+ })(l ||= {});
7
+ var u = {
8
+ traceId: "00000000000000000000000000000000",
9
+ spanId: "0000000000000000",
10
+ traceFlags: l.NONE
11
+ }, d = class {
12
+ constructor(e = u) {
13
+ this._spanContext = e;
14
+ }
15
+ spanContext() {
16
+ return this._spanContext;
17
+ }
18
+ setAttribute(e, t) {
19
+ return this;
20
+ }
21
+ setAttributes(e) {
22
+ return this;
23
+ }
24
+ addEvent(e, t) {
25
+ return this;
26
+ }
27
+ addLink(e) {
28
+ return this;
29
+ }
30
+ addLinks(e) {
31
+ return this;
32
+ }
33
+ setStatus(e) {
34
+ return this;
35
+ }
36
+ updateName(e) {
37
+ return this;
38
+ }
39
+ end(e) {}
40
+ isRecording() {
41
+ return !1;
42
+ }
43
+ recordException(e, t) {}
44
+ }, f = o("OpenTelemetry Context Key SPAN");
45
+ function p(e) {
46
+ return e.getValue(f) || void 0;
41
47
  }
42
- function L() {
43
- return d(T.getInstance().active());
48
+ function m() {
49
+ return p(i.getInstance().active());
44
50
  }
45
- function l(t, e) {
46
- return t.setValue(v, e);
51
+ function h(e, t) {
52
+ return e.setValue(f, t);
47
53
  }
48
- function O(t) {
49
- return t.deleteValue(v);
54
+ function g(e) {
55
+ return e.deleteValue(f);
50
56
  }
51
- function k(t, e) {
52
- return l(t, new i(e));
57
+ function _(e, t) {
58
+ return h(e, new d(t));
53
59
  }
54
- function A(t) {
55
- var e;
56
- return (e = d(t)) === null || e === void 0 ? void 0 : e.spanContext();
60
+ function v(e) {
61
+ return p(e)?.spanContext();
57
62
  }
58
- var G = /^([0-9a-f]{32})$/i, K = /^[0-9a-f]{16}$/i;
59
- function M(t) {
60
- return G.test(t) && t !== P;
63
+ //#endregion
64
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js
65
+ var y = new Uint8Array([
66
+ 0,
67
+ 0,
68
+ 0,
69
+ 0,
70
+ 0,
71
+ 0,
72
+ 0,
73
+ 0,
74
+ 0,
75
+ 0,
76
+ 0,
77
+ 0,
78
+ 0,
79
+ 0,
80
+ 0,
81
+ 0,
82
+ 0,
83
+ 0,
84
+ 0,
85
+ 0,
86
+ 0,
87
+ 0,
88
+ 0,
89
+ 0,
90
+ 0,
91
+ 0,
92
+ 0,
93
+ 0,
94
+ 0,
95
+ 0,
96
+ 0,
97
+ 0,
98
+ 0,
99
+ 0,
100
+ 0,
101
+ 0,
102
+ 0,
103
+ 0,
104
+ 0,
105
+ 0,
106
+ 0,
107
+ 0,
108
+ 0,
109
+ 0,
110
+ 0,
111
+ 0,
112
+ 0,
113
+ 0,
114
+ 1,
115
+ 1,
116
+ 1,
117
+ 1,
118
+ 1,
119
+ 1,
120
+ 1,
121
+ 1,
122
+ 1,
123
+ 1,
124
+ 0,
125
+ 0,
126
+ 0,
127
+ 0,
128
+ 0,
129
+ 0,
130
+ 0,
131
+ 1,
132
+ 1,
133
+ 1,
134
+ 1,
135
+ 1,
136
+ 1,
137
+ 0,
138
+ 0,
139
+ 0,
140
+ 0,
141
+ 0,
142
+ 0,
143
+ 0,
144
+ 0,
145
+ 0,
146
+ 0,
147
+ 0,
148
+ 0,
149
+ 0,
150
+ 0,
151
+ 0,
152
+ 0,
153
+ 0,
154
+ 0,
155
+ 0,
156
+ 0,
157
+ 0,
158
+ 0,
159
+ 0,
160
+ 0,
161
+ 0,
162
+ 0,
163
+ 1,
164
+ 1,
165
+ 1,
166
+ 1,
167
+ 1,
168
+ 1
169
+ ]);
170
+ function b(e, t) {
171
+ if (typeof e != "string" || e.length !== t) return !1;
172
+ let n = 0;
173
+ for (let t = 0; t < e.length; t += 4) n += (y[e.charCodeAt(t)] | 0) + (y[e.charCodeAt(t + 1)] | 0) + (y[e.charCodeAt(t + 2)] | 0) + (y[e.charCodeAt(t + 3)] | 0);
174
+ return n === t;
61
175
  }
62
- function X(t) {
63
- return K.test(t) && t !== S;
176
+ function x(e) {
177
+ return b(e, 32) && e !== "00000000000000000000000000000000";
64
178
  }
65
- function I(t) {
66
- return M(t.traceId) && X(t.spanId);
179
+ function S(e) {
180
+ return b(e, 16) && e !== "0000000000000000";
67
181
  }
68
- function $(t) {
69
- return new i(t);
182
+ function C(e) {
183
+ return x(e.traceId) && S(e.spanId);
70
184
  }
71
- var c = T.getInstance(), x = (
72
- /** @class */
73
- (function() {
74
- function t() {
75
- }
76
- return t.prototype.startSpan = function(e, r, n) {
77
- n === void 0 && (n = c.active());
78
- var a = !!r?.root;
79
- if (a)
80
- return new i();
81
- var o = n && A(n);
82
- return j(o) && I(o) ? new i(o) : new i();
83
- }, t.prototype.startActiveSpan = function(e, r, n, a) {
84
- var o, s, u;
85
- if (!(arguments.length < 2)) {
86
- arguments.length === 2 ? u = r : arguments.length === 3 ? (o = r, u = n) : (o = r, s = n, u = a);
87
- var g = s ?? c.active(), _ = this.startSpan(e, o, g), N = l(g, _);
88
- return c.with(N, u, void 0, _);
89
- }
90
- }, t;
91
- })()
92
- );
93
- function j(t) {
94
- return typeof t == "object" && typeof t.spanId == "string" && typeof t.traceId == "string" && typeof t.traceFlags == "number";
185
+ function w(e) {
186
+ return new d(e);
95
187
  }
96
- var B = new x(), F = (
97
- /** @class */
98
- (function() {
99
- function t(e, r, n, a) {
100
- this._provider = e, this.name = r, this.version = n, this.options = a;
101
- }
102
- return t.prototype.startSpan = function(e, r, n) {
103
- return this._getTracer().startSpan(e, r, n);
104
- }, t.prototype.startActiveSpan = function(e, r, n, a) {
105
- var o = this._getTracer();
106
- return Reflect.apply(o.startActiveSpan, o, arguments);
107
- }, t.prototype._getTracer = function() {
108
- if (this._delegate)
109
- return this._delegate;
110
- var e = this._provider.getDelegateTracer(this.name, this.version, this.options);
111
- return e ? (this._delegate = e, this._delegate) : B;
112
- }, t;
113
- })()
114
- ), W = (
115
- /** @class */
116
- (function() {
117
- function t() {
118
- }
119
- return t.prototype.getTracer = function(e, r, n) {
120
- return new x();
121
- }, t;
122
- })()
123
- ), Y = new W(), y = (
124
- /** @class */
125
- (function() {
126
- function t() {
127
- }
128
- return t.prototype.getTracer = function(e, r, n) {
129
- var a;
130
- return (a = this.getDelegateTracer(e, r, n)) !== null && a !== void 0 ? a : new F(this, e, r, n);
131
- }, t.prototype.getDelegate = function() {
132
- var e;
133
- return (e = this._delegate) !== null && e !== void 0 ? e : Y;
134
- }, t.prototype.setDelegate = function(e) {
135
- this._delegate = e;
136
- }, t.prototype.getDelegateTracer = function(e, r, n) {
137
- var a;
138
- return (a = this._delegate) === null || a === void 0 ? void 0 : a.getTracer(e, r, n);
139
- }, t;
140
- })()
141
- ), p = "trace", q = (
142
- /** @class */
143
- (function() {
144
- function t() {
145
- this._proxyTracerProvider = new y(), this.wrapSpanContext = $, this.isSpanContextValid = I, this.deleteSpan = O, this.getSpan = d, this.getActiveSpan = L, this.getSpanContext = A, this.setSpan = l, this.setSpanContext = k;
146
- }
147
- return t.getInstance = function() {
148
- return this._instance || (this._instance = new t()), this._instance;
149
- }, t.prototype.setGlobalTracerProvider = function(e) {
150
- var r = D(p, this._proxyTracerProvider, h.instance());
151
- return r && this._proxyTracerProvider.setDelegate(e), r;
152
- }, t.prototype.getTracerProvider = function() {
153
- return E(p) || this._proxyTracerProvider;
154
- }, t.prototype.getTracer = function(e, r) {
155
- return this.getTracerProvider().getTracer(e, r);
156
- }, t.prototype.disable = function() {
157
- w(p, h.instance()), this._proxyTracerProvider = new y();
158
- }, t;
159
- })()
160
- ), z = q.getInstance();
161
- const J = () => {
162
- const t = "synnax";
163
- return new C({
164
- key: "",
165
- serviceName: t,
166
- logger: new V(),
167
- tracer: new R(z.getTracerProvider().getTracer("synnax"))
168
- });
169
- };
170
- export {
171
- J as instrumentation
188
+ //#endregion
189
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js
190
+ var T = i.getInstance(), E = class {
191
+ startSpan(e, t, n = T.active()) {
192
+ if (t?.root) return new d();
193
+ let r = n && v(n);
194
+ return D(r) && C(r) ? new d(r) : new d();
195
+ }
196
+ startActiveSpan(e, t, n, r) {
197
+ let i, a, o;
198
+ if (arguments.length < 2) return;
199
+ arguments.length === 2 ? o = t : arguments.length === 3 ? (i = t, o = n) : (i = t, a = n, o = r);
200
+ let s = a ?? T.active(), c = this.startSpan(e, i, s), l = h(s, c);
201
+ return T.with(l, o, void 0, c);
202
+ }
172
203
  };
204
+ function D(e) {
205
+ return typeof e == "object" && !!e && "spanId" in e && typeof e.spanId == "string" && "traceId" in e && typeof e.traceId == "string" && "traceFlags" in e && typeof e.traceFlags == "number";
206
+ }
207
+ //#endregion
208
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js
209
+ var O = new E(), k = class {
210
+ constructor(e, t, n, r) {
211
+ this._provider = e, this.name = t, this.version = n, this.options = r;
212
+ }
213
+ startSpan(e, t, n) {
214
+ return this._getTracer().startSpan(e, t, n);
215
+ }
216
+ startActiveSpan(e, t, n, r) {
217
+ let i = this._getTracer();
218
+ return Reflect.apply(i.startActiveSpan, i, arguments);
219
+ }
220
+ _getTracer() {
221
+ if (this._delegate) return this._delegate;
222
+ let e = this._provider.getDelegateTracer(this.name, this.version, this.options);
223
+ return e ? (this._delegate = e, this._delegate) : O;
224
+ }
225
+ }, A = new class {
226
+ getTracer(e, t, n) {
227
+ return new E();
228
+ }
229
+ }(), j = class {
230
+ getTracer(e, t, n) {
231
+ return this.getDelegateTracer(e, t, n) ?? new k(this, e, t, n);
232
+ }
233
+ getDelegate() {
234
+ return this._delegate ?? A;
235
+ }
236
+ setDelegate(e) {
237
+ this._delegate = e;
238
+ }
239
+ getDelegateTracer(e, t, n) {
240
+ return this._delegate?.getTracer(e, t, n);
241
+ }
242
+ }, M = "trace", N = class n {
243
+ constructor() {
244
+ this._proxyTracerProvider = new j(), this.wrapSpanContext = w, this.isSpanContextValid = C, this.deleteSpan = g, this.getSpan = p, this.getActiveSpan = m, this.getSpanContext = v, this.setSpan = h, this.setSpanContext = _;
245
+ }
246
+ static getInstance() {
247
+ return this._instance ||= new n(), this._instance;
248
+ }
249
+ setGlobalTracerProvider(t) {
250
+ let n = c(M, this._proxyTracerProvider, e.instance());
251
+ return n && this._proxyTracerProvider.setDelegate(t), n;
252
+ }
253
+ getTracerProvider() {
254
+ return r(M) || this._proxyTracerProvider;
255
+ }
256
+ getTracer(e, t) {
257
+ return this.getTracerProvider().getTracer(e, t);
258
+ }
259
+ disable() {
260
+ t(M, e.instance()), this._proxyTracerProvider = new j();
261
+ }
262
+ }.getInstance(), P = () => new s({
263
+ key: "",
264
+ serviceName: "synnax",
265
+ logger: new a(),
266
+ tracer: new n(N.getTracerProvider().getTracer("synnax"))
267
+ });
268
+ //#endregion
269
+ export { P as instrumentation };