@synnaxlabs/alamos 0.53.0 → 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.
- package/.turbo/turbo-build.log +17 -13
- package/dist/alamos.cjs +1 -0
- package/dist/alamos.js +22 -0
- package/dist/dev.cjs +1 -1
- package/dist/dev.js +257 -160
- package/dist/instrumentation-CSKtGJe6.js +434 -0
- package/dist/instrumentation-o9cJjaej.cjs +1 -0
- package/package.json +15 -15
- package/tsconfig.json +1 -6
- package/vite.config.ts +9 -0
- package/dist/index.cjs +0 -1
- package/dist/index.js +0 -25
- package/dist/instrumentation-BUpiX8Rz.cjs +0 -1
- package/dist/instrumentation-BvrhwRHI.js +0 -667
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
|
|
2
|
-
> @synnaxlabs/alamos@0.
|
|
2
|
+
> @synnaxlabs/alamos@0.54.0 build /home/runner/work/synnax/synnax/alamos/ts
|
|
3
3
|
> tsc --noEmit && vite build
|
|
4
4
|
|
|
5
5
|
[34m Synnax - Production mode[0m
|
|
6
|
-
[36mvite
|
|
7
|
-
|
|
8
|
-
[32m✓[39m 54 modules transformed.
|
|
6
|
+
[36mvite v8.0.3 [32mbuilding client environment for production...[36m[39m
|
|
7
|
+
[2K
|
|
9
8
|
rendering chunks...
|
|
10
9
|
[32m
|
|
11
10
|
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
12
|
-
|
|
13
|
-
[2mdist/[22m[36mindex.js [39m[1m[2m 0.61 kB[22m[1m[22m[2m │ gzip: 0.36 kB[22m
|
|
14
|
-
[2mdist/[22m[36mdev.js [39m[1m[2m 5.29 kB[22m[1m[22m[2m │ gzip: 1.50 kB[22m
|
|
15
|
-
[2mdist/[22m[36minstrumentation-BvrhwRHI.js [39m[1m[2m20.59 kB[22m[1m[22m[2m │ gzip: 5.09 kB[22m
|
|
16
|
-
[32m[36m[vite:dts][32m Declaration files built in 2131ms.
|
|
11
|
+
[32m[36m[vite:dts][32m Declaration files built in 2214ms.
|
|
17
12
|
[39m
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
+
[2K
|
|
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
|
+
[32m✓ built in 2.34s[39m
|
package/dist/alamos.cjs
ADDED
|
@@ -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
|
-
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
|
43
|
-
|
|
48
|
+
function m() {
|
|
49
|
+
return p(i.getInstance().active());
|
|
44
50
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
51
|
+
function h(e, t) {
|
|
52
|
+
return e.setValue(f, t);
|
|
47
53
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
54
|
+
function g(e) {
|
|
55
|
+
return e.deleteValue(f);
|
|
50
56
|
}
|
|
51
|
-
function
|
|
52
|
-
|
|
57
|
+
function _(e, t) {
|
|
58
|
+
return h(e, new d(t));
|
|
53
59
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
|
63
|
-
|
|
176
|
+
function x(e) {
|
|
177
|
+
return b(e, 32) && e !== "00000000000000000000000000000000";
|
|
64
178
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
179
|
+
function S(e) {
|
|
180
|
+
return b(e, 16) && e !== "0000000000000000";
|
|
67
181
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
182
|
+
function C(e) {
|
|
183
|
+
return x(e.traceId) && S(e.spanId);
|
|
70
184
|
}
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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 };
|