@launchdarkly/observability 0.1.11 → 0.1.12
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/CHANGELOG.md +8 -0
- package/dist/observability.js +153 -154
- package/dist/observability.js.map +1 -1
- package/package.json +2 -2
package/dist/observability.js
CHANGED
|
@@ -73,7 +73,7 @@ var Ls = Object.defineProperty, Cs = Object.defineProperties, Rs = Object.getOwn
|
|
|
73
73
|
}, u = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, a);
|
|
74
74
|
u((n = n.apply(t, e)).next());
|
|
75
75
|
});
|
|
76
|
-
function
|
|
76
|
+
function Is(t, e) {
|
|
77
77
|
for (var n = 0; n < e.length; n++) {
|
|
78
78
|
const r = e[n];
|
|
79
79
|
if (typeof r != "string" && !Array.isArray(r)) {
|
|
@@ -92,7 +92,7 @@ function Ps(t, e) {
|
|
|
92
92
|
function Ht(t, e) {
|
|
93
93
|
throw new Error(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Ps(t) {
|
|
96
96
|
return typeof t == "object" && t !== null;
|
|
97
97
|
}
|
|
98
98
|
function ks(t, e) {
|
|
@@ -206,7 +206,7 @@ let js = class xo extends Error {
|
|
|
206
206
|
(r = this.nodes) === null || r === void 0 ? void 0 : r.map((m) => m.loc).filter((m) => m != null)
|
|
207
207
|
);
|
|
208
208
|
this.source = u ?? (f == null || (i = f[0]) === null || i === void 0 ? void 0 : i.source), this.positions = c ?? f?.map((m) => m.start), this.locations = c && u ? c.map((m) => ar(u, m)) : f?.map((m) => ar(m.source, m.start));
|
|
209
|
-
const y =
|
|
209
|
+
const y = Ps(
|
|
210
210
|
l?.extensions
|
|
211
211
|
) ? l?.extensions : void 0;
|
|
212
212
|
this.extensions = (o = p ?? y) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -300,8 +300,7 @@ let Bs = class {
|
|
|
300
300
|
end: this.end
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
}
|
|
304
|
-
class No {
|
|
303
|
+
}, No = class {
|
|
305
304
|
/**
|
|
306
305
|
* The kind of Token.
|
|
307
306
|
*/
|
|
@@ -342,7 +341,7 @@ class No {
|
|
|
342
341
|
column: this.column
|
|
343
342
|
};
|
|
344
343
|
}
|
|
345
|
-
}
|
|
344
|
+
};
|
|
346
345
|
const Lo = {
|
|
347
346
|
Name: [],
|
|
348
347
|
Document: ["definitions"],
|
|
@@ -535,15 +534,15 @@ function tt(t) {
|
|
|
535
534
|
return t >= 0 && t <= 55295 || t >= 57344 && t <= 1114111;
|
|
536
535
|
}
|
|
537
536
|
function yn(t, e) {
|
|
538
|
-
return
|
|
537
|
+
return Io(t.charCodeAt(e)) && Po(t.charCodeAt(e + 1));
|
|
539
538
|
}
|
|
540
|
-
function
|
|
539
|
+
function Io(t) {
|
|
541
540
|
return t >= 55296 && t <= 56319;
|
|
542
541
|
}
|
|
543
|
-
function
|
|
542
|
+
function Po(t) {
|
|
544
543
|
return t >= 56320 && t <= 57343;
|
|
545
544
|
}
|
|
546
|
-
function
|
|
545
|
+
function Ie(t, e) {
|
|
547
546
|
const n = t.source.body.codePointAt(e);
|
|
548
547
|
if (n === void 0)
|
|
549
548
|
return d.EOF;
|
|
@@ -617,7 +616,7 @@ function Xs(t, e) {
|
|
|
617
616
|
throw G(
|
|
618
617
|
t.source,
|
|
619
618
|
i,
|
|
620
|
-
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : tt(o) || yn(n, i) ? `Unexpected character: ${
|
|
619
|
+
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : tt(o) || yn(n, i) ? `Unexpected character: ${Ie(t, i)}.` : `Invalid character: ${Ie(t, i)}.`
|
|
621
620
|
);
|
|
622
621
|
}
|
|
623
622
|
return B(t, d.EOF, r, r);
|
|
@@ -652,7 +651,7 @@ function Ys(t, e, n) {
|
|
|
652
651
|
throw G(
|
|
653
652
|
t.source,
|
|
654
653
|
i,
|
|
655
|
-
`Invalid number, unexpected digit after 0: ${
|
|
654
|
+
`Invalid number, unexpected digit after 0: ${Ie(
|
|
656
655
|
t,
|
|
657
656
|
i
|
|
658
657
|
)}.`
|
|
@@ -663,7 +662,7 @@ function Ys(t, e, n) {
|
|
|
663
662
|
throw G(
|
|
664
663
|
t.source,
|
|
665
664
|
i,
|
|
666
|
-
`Invalid number, expected digit but got: ${
|
|
665
|
+
`Invalid number, expected digit but got: ${Ie(
|
|
667
666
|
t,
|
|
668
667
|
i
|
|
669
668
|
)}.`
|
|
@@ -681,7 +680,7 @@ function xn(t, e, n) {
|
|
|
681
680
|
throw G(
|
|
682
681
|
t.source,
|
|
683
682
|
e,
|
|
684
|
-
`Invalid number, expected digit but got: ${
|
|
683
|
+
`Invalid number, expected digit but got: ${Ie(
|
|
685
684
|
t,
|
|
686
685
|
e
|
|
687
686
|
)}.`
|
|
@@ -715,7 +714,7 @@ function Ws(t, e) {
|
|
|
715
714
|
throw G(
|
|
716
715
|
t.source,
|
|
717
716
|
i,
|
|
718
|
-
`Invalid character within String: ${
|
|
717
|
+
`Invalid character within String: ${Ie(
|
|
719
718
|
t,
|
|
720
719
|
i
|
|
721
720
|
)}.`
|
|
@@ -755,9 +754,9 @@ function Qs(t, e) {
|
|
|
755
754
|
value: String.fromCodePoint(r),
|
|
756
755
|
size: 6
|
|
757
756
|
};
|
|
758
|
-
if (
|
|
757
|
+
if (Io(r) && n.charCodeAt(e + 6) === 92 && n.charCodeAt(e + 7) === 117) {
|
|
759
758
|
const i = ei(n, e + 8);
|
|
760
|
-
if (
|
|
759
|
+
if (Po(i))
|
|
761
760
|
return {
|
|
762
761
|
value: String.fromCodePoint(r, i),
|
|
763
762
|
size: 12
|
|
@@ -864,7 +863,7 @@ function eu(t, e) {
|
|
|
864
863
|
throw G(
|
|
865
864
|
t.source,
|
|
866
865
|
o,
|
|
867
|
-
`Invalid character within String: ${
|
|
866
|
+
`Invalid character within String: ${Ie(
|
|
868
867
|
t,
|
|
869
868
|
o
|
|
870
869
|
)}.`
|
|
@@ -891,7 +890,7 @@ function tu(t, e) {
|
|
|
891
890
|
);
|
|
892
891
|
}
|
|
893
892
|
const nu = 10, ko = 2;
|
|
894
|
-
function
|
|
893
|
+
function Ir(t) {
|
|
895
894
|
return vn(t, []);
|
|
896
895
|
}
|
|
897
896
|
function vn(t, e) {
|
|
@@ -963,7 +962,7 @@ const uu = (
|
|
|
963
962
|
Symbol.toStringTag in t ? t[Symbol.toStringTag] : (n = t.constructor) === null || n === void 0 ? void 0 : n.name
|
|
964
963
|
);
|
|
965
964
|
if (r === i) {
|
|
966
|
-
const o =
|
|
965
|
+
const o = Ir(t);
|
|
967
966
|
throw new Error(`Cannot use ${r} "${o}" from another module or realm.
|
|
968
967
|
|
|
969
968
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
@@ -981,12 +980,12 @@ spurious results.`);
|
|
|
981
980
|
return !1;
|
|
982
981
|
}
|
|
983
982
|
);
|
|
984
|
-
|
|
983
|
+
let Mo = class {
|
|
985
984
|
constructor(e, n = "GraphQL request", r = {
|
|
986
985
|
line: 1,
|
|
987
986
|
column: 1
|
|
988
987
|
}) {
|
|
989
|
-
typeof e == "string" || Ht(!1, `Body must be a string. Received: ${
|
|
988
|
+
typeof e == "string" || Ht(!1, `Body must be a string. Received: ${Ir(e)}.`), this.body = e, this.name = n, this.locationOffset = r, this.locationOffset.line > 0 || Ht(
|
|
990
989
|
!1,
|
|
991
990
|
"line in locationOffset is 1-indexed and must be positive."
|
|
992
991
|
), this.locationOffset.column > 0 || Ht(
|
|
@@ -997,11 +996,11 @@ class Mo {
|
|
|
997
996
|
get [Symbol.toStringTag]() {
|
|
998
997
|
return "Source";
|
|
999
998
|
}
|
|
1000
|
-
}
|
|
999
|
+
};
|
|
1001
1000
|
function cu(t) {
|
|
1002
1001
|
return uu(t, Mo);
|
|
1003
1002
|
}
|
|
1004
|
-
function
|
|
1003
|
+
function Pr(t, e) {
|
|
1005
1004
|
return new lu(t, e).parseDocument();
|
|
1006
1005
|
}
|
|
1007
1006
|
class lu {
|
|
@@ -2294,15 +2293,15 @@ function yu(t, e, n = Lo) {
|
|
|
2294
2293
|
const f = [], y = [];
|
|
2295
2294
|
do {
|
|
2296
2295
|
u++;
|
|
2297
|
-
const T = u === a.length,
|
|
2296
|
+
const T = u === a.length, I = T && c.length !== 0;
|
|
2298
2297
|
if (T) {
|
|
2299
|
-
if (l = y.length === 0 ? void 0 : f[f.length - 1], s = p, p = y.pop(),
|
|
2298
|
+
if (l = y.length === 0 ? void 0 : f[f.length - 1], s = p, p = y.pop(), I)
|
|
2300
2299
|
if (o) {
|
|
2301
2300
|
s = s.slice();
|
|
2302
2301
|
let M = 0;
|
|
2303
|
-
for (const [F,
|
|
2302
|
+
for (const [F, P] of c) {
|
|
2304
2303
|
const H = F - M;
|
|
2305
|
-
|
|
2304
|
+
P === null ? (s.splice(H, 1), M++) : s[H] = P;
|
|
2306
2305
|
}
|
|
2307
2306
|
} else {
|
|
2308
2307
|
s = Object.defineProperties(
|
|
@@ -2321,7 +2320,7 @@ function yu(t, e, n = Lo) {
|
|
|
2321
2320
|
let $;
|
|
2322
2321
|
if (!Array.isArray(s)) {
|
|
2323
2322
|
var m, v;
|
|
2324
|
-
Zr(s) || Ht(!1, `Invalid AST Node: ${
|
|
2323
|
+
Zr(s) || Ht(!1, `Invalid AST Node: ${Ir(s)}.`);
|
|
2325
2324
|
const M = T ? (m = r.get(s.kind)) === null || m === void 0 ? void 0 : m.leave : (v = r.get(s.kind)) === null || v === void 0 ? void 0 : v.enter;
|
|
2326
2325
|
if ($ = M?.call(e, s, l, p, f, y), $ === mu)
|
|
2327
2326
|
break;
|
|
@@ -2338,7 +2337,7 @@ function yu(t, e, n = Lo) {
|
|
|
2338
2337
|
continue;
|
|
2339
2338
|
}
|
|
2340
2339
|
}
|
|
2341
|
-
if ($ === void 0 &&
|
|
2340
|
+
if ($ === void 0 && I && c.push([l, s]), T)
|
|
2342
2341
|
f.pop();
|
|
2343
2342
|
else {
|
|
2344
2343
|
var _;
|
|
@@ -2653,7 +2652,7 @@ const kr = JSON, Eu = (t) => t.toUpperCase(), Tu = (t) => {
|
|
|
2653
2652
|
if (typeof t == "string") {
|
|
2654
2653
|
let n;
|
|
2655
2654
|
try {
|
|
2656
|
-
const r =
|
|
2655
|
+
const r = Pr(t);
|
|
2657
2656
|
n = ni(r);
|
|
2658
2657
|
} catch {
|
|
2659
2658
|
}
|
|
@@ -2796,7 +2795,7 @@ var cr = { exports: {} };
|
|
|
2796
2795
|
var g = new FileReader(), A = _(g);
|
|
2797
2796
|
return g.readAsArrayBuffer(h), A;
|
|
2798
2797
|
}
|
|
2799
|
-
function
|
|
2798
|
+
function I(h) {
|
|
2800
2799
|
var g = new FileReader(), A = _(g);
|
|
2801
2800
|
return g.readAsText(h), A;
|
|
2802
2801
|
}
|
|
@@ -2832,7 +2831,7 @@ var cr = { exports: {} };
|
|
|
2832
2831
|
if (h)
|
|
2833
2832
|
return h;
|
|
2834
2833
|
if (this._bodyBlob)
|
|
2835
|
-
return
|
|
2834
|
+
return I(this._bodyBlob);
|
|
2836
2835
|
if (this._bodyArrayBuffer)
|
|
2837
2836
|
return Promise.resolve($(this._bodyArrayBuffer));
|
|
2838
2837
|
if (this._bodyFormData)
|
|
@@ -2844,10 +2843,10 @@ var cr = { exports: {} };
|
|
|
2844
2843
|
return this.text().then(JSON.parse);
|
|
2845
2844
|
}, this;
|
|
2846
2845
|
}
|
|
2847
|
-
var
|
|
2846
|
+
var P = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
2848
2847
|
function H(h) {
|
|
2849
2848
|
var g = h.toUpperCase();
|
|
2850
|
-
return
|
|
2849
|
+
return P.indexOf(g) > -1 ? g : h;
|
|
2851
2850
|
}
|
|
2852
2851
|
function U(h, g) {
|
|
2853
2852
|
g = g || {};
|
|
@@ -2952,7 +2951,7 @@ var cr = { exports: {} };
|
|
|
2952
2951
|
e = i.fetch, e.default = i.fetch, e.fetch = i.fetch, e.Headers = i.Headers, e.Request = i.Request, e.Response = i.Response, t.exports = e;
|
|
2953
2952
|
})(cr, cr.exports);
|
|
2954
2953
|
var tn = cr.exports;
|
|
2955
|
-
const Xt = /* @__PURE__ */ Dr(tn), Au = /* @__PURE__ */
|
|
2954
|
+
const Xt = /* @__PURE__ */ Dr(tn), Au = /* @__PURE__ */ Is({
|
|
2956
2955
|
__proto__: null,
|
|
2957
2956
|
default: Xt
|
|
2958
2957
|
}, [tn]), Ve = (t) => {
|
|
@@ -2989,8 +2988,8 @@ const Xt = /* @__PURE__ */ Dr(tn), Au = /* @__PURE__ */ Ps({
|
|
|
2989
2988
|
}, c);
|
|
2990
2989
|
let m = r, v = y;
|
|
2991
2990
|
if (s) {
|
|
2992
|
-
const _ = yield Promise.resolve(s(Ke(N({}, y), { url: r, operationName: a, variables: o }))), { url: T } = _,
|
|
2993
|
-
m = T, v =
|
|
2991
|
+
const _ = yield Promise.resolve(s(Ke(N({}, y), { url: r, operationName: a, variables: o }))), { url: T } = _, I = ht(_, ["url"]);
|
|
2992
|
+
m = T, v = I;
|
|
2994
2993
|
}
|
|
2995
2994
|
return p && (m = `${m}?${p}`), yield u(m, v);
|
|
2996
2995
|
});
|
|
@@ -3125,8 +3124,8 @@ var lr = { exports: {} };
|
|
|
3125
3124
|
};
|
|
3126
3125
|
}
|
|
3127
3126
|
})(lr, lr.exports);
|
|
3128
|
-
var
|
|
3129
|
-
const Xe = /* @__PURE__ */ Dr(
|
|
3127
|
+
var Iu = lr.exports;
|
|
3128
|
+
const Xe = /* @__PURE__ */ Dr(Iu);
|
|
3130
3129
|
var nn = function() {
|
|
3131
3130
|
return nn = Object.assign || function(t) {
|
|
3132
3131
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
@@ -3139,14 +3138,14 @@ var nn = function() {
|
|
|
3139
3138
|
function Bo(t) {
|
|
3140
3139
|
return t.replace(/[\s,]+/g, " ").trim();
|
|
3141
3140
|
}
|
|
3142
|
-
function
|
|
3141
|
+
function Pu(t) {
|
|
3143
3142
|
return Bo(t.source.body.substring(t.start, t.end));
|
|
3144
3143
|
}
|
|
3145
3144
|
function ku(t) {
|
|
3146
3145
|
var e = /* @__PURE__ */ new Set(), n = [];
|
|
3147
3146
|
return t.definitions.forEach(function(r) {
|
|
3148
3147
|
if (r.kind === "FragmentDefinition") {
|
|
3149
|
-
var i = r.name.value, o =
|
|
3148
|
+
var i = r.name.value, o = Pu(r.loc), a = pr.get(i);
|
|
3150
3149
|
a && !a.has(o) ? jo && console.warn("Warning: fragment with name " + i + ` already exists.
|
|
3151
3150
|
graphql-tag enforces all fragment names across your application to be unique; read more about
|
|
3152
3151
|
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : a || pr.set(i, a = /* @__PURE__ */ new Set()), a.add(o), e.has(o) || (e.add(o), n.push(r));
|
|
@@ -3168,7 +3167,7 @@ function Mu(t) {
|
|
|
3168
3167
|
function Du(t) {
|
|
3169
3168
|
var e = Bo(t);
|
|
3170
3169
|
if (!Kt.has(e)) {
|
|
3171
|
-
var n =
|
|
3170
|
+
var n = Pr(t, {
|
|
3172
3171
|
experimentalFragmentVariables: rn,
|
|
3173
3172
|
allowLegacyFragmentVariables: rn
|
|
3174
3173
|
});
|
|
@@ -3386,8 +3385,8 @@ const $o = W`
|
|
|
3386
3385
|
ignore(id: $id)
|
|
3387
3386
|
}
|
|
3388
3387
|
`, Yu = W`
|
|
3389
|
-
query GetSamplingConfig($
|
|
3390
|
-
sampling(
|
|
3388
|
+
query GetSamplingConfig($organization_verbose_id: String!) {
|
|
3389
|
+
sampling(organization_verbose_id: $organization_verbose_id) {
|
|
3391
3390
|
spans {
|
|
3392
3391
|
name {
|
|
3393
3392
|
...MatchParts
|
|
@@ -3877,7 +3876,7 @@ let Rc = class {
|
|
|
3877
3876
|
})
|
|
3878
3877
|
);
|
|
3879
3878
|
}
|
|
3880
|
-
},
|
|
3879
|
+
}, Ic = class extends So {
|
|
3881
3880
|
constructor(e, n) {
|
|
3882
3881
|
super(), We(this, "client"), this.client = new Rc(e, n);
|
|
3883
3882
|
}
|
|
@@ -3912,7 +3911,7 @@ let Rc = class {
|
|
|
3912
3911
|
return this._bufferCall("track", [e, n]);
|
|
3913
3912
|
}
|
|
3914
3913
|
};
|
|
3915
|
-
function
|
|
3914
|
+
function Pc(t) {
|
|
3916
3915
|
if (t.id.length)
|
|
3917
3916
|
return `#${t.id}`;
|
|
3918
3917
|
if (t.classList.length) {
|
|
@@ -4059,17 +4058,17 @@ function Fc() {
|
|
|
4059
4058
|
throw new TypeError("Eval Origin must be an Object or StackFrame");
|
|
4060
4059
|
},
|
|
4061
4060
|
toString: function() {
|
|
4062
|
-
var v = this.getFileName() || "", _ = this.getLineNumber() || "", T = this.getColumnNumber() || "",
|
|
4063
|
-
return this.getIsEval() ? v ? "[eval] (" + v + ":" + _ + ":" + T + ")" : "[eval]:" + _ + ":" + T :
|
|
4061
|
+
var v = this.getFileName() || "", _ = this.getLineNumber() || "", T = this.getColumnNumber() || "", I = this.getFunctionName() || "";
|
|
4062
|
+
return this.getIsEval() ? v ? "[eval] (" + v + ":" + _ + ":" + T + ")" : "[eval]:" + _ + ":" + T : I ? I + " (" + v + ":" + _ + ":" + T + ")" : v + ":" + _ + ":" + T;
|
|
4064
4063
|
}
|
|
4065
4064
|
}, p.fromString = function(v) {
|
|
4066
|
-
var _ = v.indexOf("("), T = v.lastIndexOf(")"),
|
|
4065
|
+
var _ = v.indexOf("("), T = v.lastIndexOf(")"), I = v.substring(0, _), $ = v.substring(_ + 1, T).split(","), M = v.substring(T + 1);
|
|
4067
4066
|
if (M.indexOf("@") === 0)
|
|
4068
|
-
var F = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(M, ""),
|
|
4067
|
+
var F = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(M, ""), P = F[1], H = F[2], U = F[3];
|
|
4069
4068
|
return new p({
|
|
4070
|
-
functionName:
|
|
4069
|
+
functionName: I,
|
|
4071
4070
|
args: $ || void 0,
|
|
4072
|
-
fileName:
|
|
4071
|
+
fileName: P,
|
|
4073
4072
|
lineNumber: H || void 0,
|
|
4074
4073
|
columnNumber: U || void 0
|
|
4075
4074
|
});
|
|
@@ -4293,7 +4292,7 @@ function Hc(t, e, ...n) {
|
|
|
4293
4292
|
time: Date.now()
|
|
4294
4293
|
};
|
|
4295
4294
|
}
|
|
4296
|
-
function
|
|
4295
|
+
function In(t, e, n, r) {
|
|
4297
4296
|
var i, o, a, u;
|
|
4298
4297
|
let c = bn(r ?? e), s = {};
|
|
4299
4298
|
e instanceof Error && (e = e.message, e.cause && (s = { "exception.cause": e.cause }));
|
|
@@ -4314,16 +4313,16 @@ const qc = (t, { enablePromisePatch: e }) => {
|
|
|
4314
4313
|
if (typeof window > "u") return () => {
|
|
4315
4314
|
};
|
|
4316
4315
|
const n = window.onerror = (a, u, c, s, l) => {
|
|
4317
|
-
|
|
4316
|
+
In(t, a, u, l);
|
|
4318
4317
|
}, r = window.onunhandledrejection = (a) => {
|
|
4319
4318
|
if (a.reason) {
|
|
4320
4319
|
const u = a.promise;
|
|
4321
|
-
u.getStack ?
|
|
4320
|
+
u.getStack ? In(
|
|
4322
4321
|
t,
|
|
4323
4322
|
a.reason,
|
|
4324
4323
|
a.type,
|
|
4325
4324
|
u.getStack()
|
|
4326
|
-
) :
|
|
4325
|
+
) : In(t, a.reason, a.type);
|
|
4327
4326
|
}
|
|
4328
4327
|
}, i = window.Promise, o = class extends i {
|
|
4329
4328
|
constructor(a) {
|
|
@@ -4426,7 +4425,7 @@ function At(t, e, n, r) {
|
|
|
4426
4425
|
}
|
|
4427
4426
|
return o[t] = e, n.debug("@opentelemetry/api: Registered a global for " + t + " v" + Ce + "."), !0;
|
|
4428
4427
|
}
|
|
4429
|
-
function
|
|
4428
|
+
function Pe(t) {
|
|
4430
4429
|
var e, n, r = (e = bt[_t]) === null || e === void 0 ? void 0 : e.version;
|
|
4431
4430
|
if (!(!r || !Yc(r)))
|
|
4432
4431
|
return (n = bt[_t]) === null || n === void 0 ? void 0 : n[t];
|
|
@@ -4486,7 +4485,7 @@ var Jc = function(t, e) {
|
|
|
4486
4485
|
}()
|
|
4487
4486
|
);
|
|
4488
4487
|
function ot(t, e, n) {
|
|
4489
|
-
var r =
|
|
4488
|
+
var r = Pe("diag");
|
|
4490
4489
|
if (r)
|
|
4491
4490
|
return n.unshift(e), r[t].apply(r, Qc([], Jc(n), !1));
|
|
4492
4491
|
}
|
|
@@ -4537,7 +4536,7 @@ var tl = function(t, e) {
|
|
|
4537
4536
|
return function() {
|
|
4538
4537
|
for (var o = [], a = 0; a < arguments.length; a++)
|
|
4539
4538
|
o[a] = arguments[a];
|
|
4540
|
-
var u =
|
|
4539
|
+
var u = Pe("diag");
|
|
4541
4540
|
if (u)
|
|
4542
4541
|
return u[i].apply(u, nl([], tl(o), !1));
|
|
4543
4542
|
};
|
|
@@ -4551,7 +4550,7 @@ var tl = function(t, e) {
|
|
|
4551
4550
|
typeof o == "number" && (o = {
|
|
4552
4551
|
logLevel: o
|
|
4553
4552
|
});
|
|
4554
|
-
var l =
|
|
4553
|
+
var l = Pe("diag"), p = el((u = o.logLevel) !== null && u !== void 0 ? u : j.INFO, i);
|
|
4555
4554
|
if (l && !o.suppressOverrideMessage) {
|
|
4556
4555
|
var f = (c = new Error().stack) !== null && c !== void 0 ? c : "<failed to generate stacktrace>";
|
|
4557
4556
|
l.warn("Current logger will be overwritten from " + f), p.warn("Current logger will overwrite one already registered from " + f);
|
|
@@ -4832,7 +4831,7 @@ var Nl = {
|
|
|
4832
4831
|
if (arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
|
|
4833
4832
|
(o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
|
|
4834
4833
|
return t.concat(o || Array.prototype.slice.call(e));
|
|
4835
|
-
},
|
|
4834
|
+
}, Il = (
|
|
4836
4835
|
/** @class */
|
|
4837
4836
|
function() {
|
|
4838
4837
|
function t() {
|
|
@@ -4851,7 +4850,7 @@ var Nl = {
|
|
|
4851
4850
|
return this;
|
|
4852
4851
|
}, t;
|
|
4853
4852
|
}()
|
|
4854
|
-
),
|
|
4853
|
+
), Pl = function(t, e) {
|
|
4855
4854
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
4856
4855
|
if (!n) return t;
|
|
4857
4856
|
var r = n.call(t), i, o = [], a;
|
|
@@ -4871,7 +4870,7 @@ var Nl = {
|
|
|
4871
4870
|
if (arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
|
|
4872
4871
|
(o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
|
|
4873
4872
|
return t.concat(o || Array.prototype.slice.call(e));
|
|
4874
|
-
},
|
|
4873
|
+
}, Pn = "context", Ml = new Il(), Tn = (
|
|
4875
4874
|
/** @class */
|
|
4876
4875
|
function() {
|
|
4877
4876
|
function t() {
|
|
@@ -4879,19 +4878,19 @@ var Nl = {
|
|
|
4879
4878
|
return t.getInstance = function() {
|
|
4880
4879
|
return this._instance || (this._instance = new t()), this._instance;
|
|
4881
4880
|
}, t.prototype.setGlobalContextManager = function(e) {
|
|
4882
|
-
return At(
|
|
4881
|
+
return At(Pn, e, ce.instance());
|
|
4883
4882
|
}, t.prototype.active = function() {
|
|
4884
4883
|
return this._getContextManager().active();
|
|
4885
4884
|
}, t.prototype.with = function(e, n, r) {
|
|
4886
4885
|
for (var i, o = [], a = 3; a < arguments.length; a++)
|
|
4887
4886
|
o[a - 3] = arguments[a];
|
|
4888
|
-
return (i = this._getContextManager()).with.apply(i, kl([e, n, r],
|
|
4887
|
+
return (i = this._getContextManager()).with.apply(i, kl([e, n, r], Pl(o), !1));
|
|
4889
4888
|
}, t.prototype.bind = function(e, n) {
|
|
4890
4889
|
return this._getContextManager().bind(e, n);
|
|
4891
4890
|
}, t.prototype._getContextManager = function() {
|
|
4892
|
-
return
|
|
4891
|
+
return Pe(Pn) || Ml;
|
|
4893
4892
|
}, t.prototype.disable = function() {
|
|
4894
|
-
this._getContextManager().disable(), xt(
|
|
4893
|
+
this._getContextManager().disable(), xt(Pn, ce.instance());
|
|
4895
4894
|
}, t;
|
|
4896
4895
|
}()
|
|
4897
4896
|
), ye;
|
|
@@ -5064,7 +5063,7 @@ var L = Tn.getInstance(), E = ce.instance(), Kl = (
|
|
|
5064
5063
|
}, t.prototype.setGlobalMeterProvider = function(e) {
|
|
5065
5064
|
return At(Mn, e, ce.instance());
|
|
5066
5065
|
}, t.prototype.getMeterProvider = function() {
|
|
5067
|
-
return
|
|
5066
|
+
return Pe(Mn) || Yl;
|
|
5068
5067
|
}, t.prototype.getMeter = function(e, n, r) {
|
|
5069
5068
|
return this.getMeterProvider().getMeter(e, n, r);
|
|
5070
5069
|
}, t.prototype.disable = function() {
|
|
@@ -5115,7 +5114,7 @@ var Dn = "propagation", tp = new Jl(), np = (
|
|
|
5115
5114
|
}, t.prototype.disable = function() {
|
|
5116
5115
|
xt(Dn, ce.instance());
|
|
5117
5116
|
}, t.prototype._getGlobalPropagator = function() {
|
|
5118
|
-
return
|
|
5117
|
+
return Pe(Dn) || tp;
|
|
5119
5118
|
}, t;
|
|
5120
5119
|
}()
|
|
5121
5120
|
), ee = np.getInstance(), Un = "trace", rp = (
|
|
@@ -5130,7 +5129,7 @@ var Dn = "propagation", tp = new Jl(), np = (
|
|
|
5130
5129
|
var n = At(Un, this._proxyTracerProvider, ce.instance());
|
|
5131
5130
|
return n && this._proxyTracerProvider.setDelegate(e), n;
|
|
5132
5131
|
}, t.prototype.getTracerProvider = function() {
|
|
5133
|
-
return
|
|
5132
|
+
return Pe(Un) || this._proxyTracerProvider;
|
|
5134
5133
|
}, t.prototype.getTracer = function(e, n) {
|
|
5135
5134
|
return this.getTracerProvider().getTracer(e, n);
|
|
5136
5135
|
}, t.prototype.disable = function() {
|
|
@@ -5492,7 +5491,7 @@ var Rp = {
|
|
|
5492
5491
|
ERROR: j.ERROR,
|
|
5493
5492
|
NONE: j.NONE
|
|
5494
5493
|
};
|
|
5495
|
-
function
|
|
5494
|
+
function Ip(t, e, n) {
|
|
5496
5495
|
var r = n[t];
|
|
5497
5496
|
if (typeof r == "string") {
|
|
5498
5497
|
var i = Rp[r.toUpperCase()];
|
|
@@ -5505,7 +5504,7 @@ function ma(t) {
|
|
|
5505
5504
|
var r = n;
|
|
5506
5505
|
switch (r) {
|
|
5507
5506
|
case "OTEL_LOG_LEVEL":
|
|
5508
|
-
|
|
5507
|
+
Ip(r, e, t);
|
|
5509
5508
|
break;
|
|
5510
5509
|
default:
|
|
5511
5510
|
if (Ep(r))
|
|
@@ -5527,7 +5526,7 @@ function Qe() {
|
|
|
5527
5526
|
var t = ma(mt);
|
|
5528
5527
|
return Object.assign({}, da, t);
|
|
5529
5528
|
}
|
|
5530
|
-
function
|
|
5529
|
+
function Pp() {
|
|
5531
5530
|
return ma(mt);
|
|
5532
5531
|
}
|
|
5533
5532
|
function vi(t) {
|
|
@@ -5573,7 +5572,7 @@ function Kp(t, e) {
|
|
|
5573
5572
|
function me(t) {
|
|
5574
5573
|
return t[0] * cn + t[1];
|
|
5575
5574
|
}
|
|
5576
|
-
function
|
|
5575
|
+
function It(t) {
|
|
5577
5576
|
return t[0] * 1e6 + t[1] / 1e3;
|
|
5578
5577
|
}
|
|
5579
5578
|
function Yr(t) {
|
|
@@ -5957,7 +5956,7 @@ function Rf(t, e) {
|
|
|
5957
5956
|
});
|
|
5958
5957
|
});
|
|
5959
5958
|
}
|
|
5960
|
-
var
|
|
5959
|
+
var If = {
|
|
5961
5960
|
_export: Rf
|
|
5962
5961
|
}, Na = (
|
|
5963
5962
|
/** @class */
|
|
@@ -5967,7 +5966,7 @@ var Pf = {
|
|
|
5967
5966
|
return t.prototype.emit = function(e) {
|
|
5968
5967
|
}, t;
|
|
5969
5968
|
}()
|
|
5970
|
-
),
|
|
5969
|
+
), Pf = new Na(), kf = (
|
|
5971
5970
|
/** @class */
|
|
5972
5971
|
function() {
|
|
5973
5972
|
function t() {
|
|
@@ -5988,7 +5987,7 @@ var Pf = {
|
|
|
5988
5987
|
if (this._delegate)
|
|
5989
5988
|
return this._delegate;
|
|
5990
5989
|
var e = this._provider.getDelegateLogger(this.name, this.version, this.options);
|
|
5991
|
-
return e ? (this._delegate = e, this._delegate) :
|
|
5990
|
+
return e ? (this._delegate = e, this._delegate) : Pf;
|
|
5992
5991
|
}, t;
|
|
5993
5992
|
}()
|
|
5994
5993
|
), wi = (
|
|
@@ -6009,7 +6008,7 @@ var Pf = {
|
|
|
6009
6008
|
return (i = this._delegate) === null || i === void 0 ? void 0 : i.getLogger(e, n, r);
|
|
6010
6009
|
}, t;
|
|
6011
6010
|
}()
|
|
6012
|
-
), Df = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {},
|
|
6011
|
+
), Df = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, Pt = Symbol.for("io.opentelemetry.js.api.logs"), st = Df;
|
|
6013
6012
|
function Uf(t, e, n) {
|
|
6014
6013
|
return function(r) {
|
|
6015
6014
|
return r === t ? e : n;
|
|
@@ -6024,14 +6023,14 @@ var Oi = 1, jf = (
|
|
|
6024
6023
|
return t.getInstance = function() {
|
|
6025
6024
|
return this._instance || (this._instance = new t()), this._instance;
|
|
6026
6025
|
}, t.prototype.setGlobalLoggerProvider = function(e) {
|
|
6027
|
-
return st[
|
|
6026
|
+
return st[Pt] ? this.getLoggerProvider() : (st[Pt] = Uf(Oi, e, La), this._proxyLoggerProvider.setDelegate(e), e);
|
|
6028
6027
|
}, t.prototype.getLoggerProvider = function() {
|
|
6029
6028
|
var e, n;
|
|
6030
|
-
return (n = (e = st[
|
|
6029
|
+
return (n = (e = st[Pt]) === null || e === void 0 ? void 0 : e.call(st, Oi)) !== null && n !== void 0 ? n : this._proxyLoggerProvider;
|
|
6031
6030
|
}, t.prototype.getLogger = function(e, n, r) {
|
|
6032
6031
|
return this.getLoggerProvider().getLogger(e, n, r);
|
|
6033
6032
|
}, t.prototype.disable = function() {
|
|
6034
|
-
delete st[
|
|
6033
|
+
delete st[Pt], this._proxyLoggerProvider = new wi();
|
|
6035
6034
|
}, t;
|
|
6036
6035
|
}()
|
|
6037
6036
|
), Ca = jf.getInstance();
|
|
@@ -6103,7 +6102,7 @@ function Vf(t, e, n) {
|
|
|
6103
6102
|
});
|
|
6104
6103
|
});
|
|
6105
6104
|
}
|
|
6106
|
-
function
|
|
6105
|
+
function Ia(t, e) {
|
|
6107
6106
|
if (!t || !t[e]) {
|
|
6108
6107
|
Y("no function to unwrap."), Y(new Error().stack);
|
|
6109
6108
|
return;
|
|
@@ -6126,13 +6125,13 @@ function Gf(t, e) {
|
|
|
6126
6125
|
}
|
|
6127
6126
|
t.forEach(function(n) {
|
|
6128
6127
|
e.forEach(function(r) {
|
|
6129
|
-
|
|
6128
|
+
Ia(n, r);
|
|
6130
6129
|
});
|
|
6131
6130
|
});
|
|
6132
6131
|
}
|
|
6133
6132
|
Nt.wrap = Ra;
|
|
6134
6133
|
Nt.massWrap = Vf;
|
|
6135
|
-
Nt.unwrap =
|
|
6134
|
+
Nt.unwrap = Ia;
|
|
6136
6135
|
Nt.massUnwrap = Gf;
|
|
6137
6136
|
var ne = Nt, Er = function() {
|
|
6138
6137
|
return Er = Object.assign || function(t) {
|
|
@@ -6211,7 +6210,7 @@ var ne = Nt, Er = function() {
|
|
|
6211
6210
|
}
|
|
6212
6211
|
e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
6213
6212
|
};
|
|
6214
|
-
}(),
|
|
6213
|
+
}(), Pa = (
|
|
6215
6214
|
/** @class */
|
|
6216
6215
|
function(t) {
|
|
6217
6216
|
qf(e, t);
|
|
@@ -6514,7 +6513,7 @@ function th(t) {
|
|
|
6514
6513
|
return r.generalLimits = Object.assign({}, n.generalLimits, t.generalLimits || {}), r.spanLimits = Object.assign({}, n.spanLimits, t.spanLimits || {}), r;
|
|
6515
6514
|
}
|
|
6516
6515
|
function nh(t) {
|
|
6517
|
-
var e, n, r, i, o, a, u, c, s, l, p, f, y = Object.assign({}, t.spanLimits), m =
|
|
6516
|
+
var e, n, r, i, o, a, u, c, s, l, p, f, y = Object.assign({}, t.spanLimits), m = Pp();
|
|
6518
6517
|
return y.attributeCountLimit = (a = (o = (i = (n = (e = t.spanLimits) === null || e === void 0 ? void 0 : e.attributeCountLimit) !== null && n !== void 0 ? n : (r = t.generalLimits) === null || r === void 0 ? void 0 : r.attributeCountLimit) !== null && i !== void 0 ? i : m.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT) !== null && o !== void 0 ? o : m.OTEL_ATTRIBUTE_COUNT_LIMIT) !== null && a !== void 0 ? a : Jt, y.attributeValueLengthLimit = (f = (p = (l = (c = (u = t.spanLimits) === null || u === void 0 ? void 0 : u.attributeValueLengthLimit) !== null && c !== void 0 ? c : (s = t.generalLimits) === null || s === void 0 ? void 0 : s.attributeValueLengthLimit) !== null && l !== void 0 ? l : m.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT) !== null && p !== void 0 ? p : m.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT) !== null && f !== void 0 ? f : Wt, Object.assign({}, t, { spanLimits: y });
|
|
6519
6518
|
}
|
|
6520
6519
|
var rh = (
|
|
@@ -6674,14 +6673,14 @@ var uh = (
|
|
|
6674
6673
|
}
|
|
6675
6674
|
var s = u?.spanContext(), l = this._idGenerator.generateSpanId(), p, f, y;
|
|
6676
6675
|
!s || !C.isSpanContextValid(s) ? p = this._idGenerator.generateTraceId() : (p = s.traceId, f = s.traceState, y = s.spanId);
|
|
6677
|
-
var m = (i = n.kind) !== null && i !== void 0 ? i : Et.INTERNAL, v = ((o = n.links) !== null && o !== void 0 ? o : []).map(function(
|
|
6676
|
+
var m = (i = n.kind) !== null && i !== void 0 ? i : Et.INTERNAL, v = ((o = n.links) !== null && o !== void 0 ? o : []).map(function(P) {
|
|
6678
6677
|
return {
|
|
6679
|
-
context:
|
|
6680
|
-
attributes: Yt(
|
|
6678
|
+
context: P.context,
|
|
6679
|
+
attributes: Yt(P.attributes)
|
|
6681
6680
|
};
|
|
6682
6681
|
}), _ = Yt(n.attributes), T = this._sampler.shouldSample(r, p, e, m, _, v);
|
|
6683
6682
|
f = (a = T.traceState) !== null && a !== void 0 ? a : f;
|
|
6684
|
-
var
|
|
6683
|
+
var I = T.decision === sn.RECORD_AND_SAMPLED ? ye.SAMPLED : ye.NONE, $ = { traceId: p, spanId: l, traceFlags: I, traceState: f };
|
|
6685
6684
|
if (T.decision === sn.NOT_RECORD) {
|
|
6686
6685
|
E.debug("Recording is off, propagating context in a non-recording span");
|
|
6687
6686
|
var c = C.wrapSpanContext($);
|
|
@@ -6704,7 +6703,7 @@ var uh = (
|
|
|
6704
6703
|
return this._tracerProvider.getActiveSpanProcessor();
|
|
6705
6704
|
}, t;
|
|
6706
6705
|
}()
|
|
6707
|
-
), ch = "service.name", lh = "telemetry.sdk.name", ph = "telemetry.sdk.language", fh = "telemetry.sdk.version", hh = ch, Ri = lh,
|
|
6706
|
+
), ch = "service.name", lh = "telemetry.sdk.name", ph = "telemetry.sdk.language", fh = "telemetry.sdk.version", hh = ch, Ri = lh, Ii = ph, Pi = fh;
|
|
6708
6707
|
function dh() {
|
|
6709
6708
|
return "unknown_service";
|
|
6710
6709
|
}
|
|
@@ -6832,7 +6831,7 @@ var be = function() {
|
|
|
6832
6831
|
return t.EMPTY;
|
|
6833
6832
|
}, t.default = function() {
|
|
6834
6833
|
var e;
|
|
6835
|
-
return new t((e = {}, e[hh] = dh(), e[
|
|
6834
|
+
return new t((e = {}, e[hh] = dh(), e[Ii] = Bn[Ii], e[Ri] = Bn[Ri], e[Pi] = Bn[Pi], e));
|
|
6836
6835
|
}, Object.defineProperty(t.prototype, "attributes", {
|
|
6837
6836
|
get: function() {
|
|
6838
6837
|
var e;
|
|
@@ -7225,7 +7224,7 @@ function Ba(t, e, n, r, i, o) {
|
|
|
7225
7224
|
i === void 0 && (i = /* @__PURE__ */ new WeakSet());
|
|
7226
7225
|
var a = he(t);
|
|
7227
7226
|
t = a.toString();
|
|
7228
|
-
var u =
|
|
7227
|
+
var u = Ph(t, e, n, r, i, o);
|
|
7229
7228
|
if (u.length === 0)
|
|
7230
7229
|
return {
|
|
7231
7230
|
mainRequest: void 0
|
|
@@ -7236,7 +7235,7 @@ function Ba(t, e, n, r, i, o) {
|
|
|
7236
7235
|
};
|
|
7237
7236
|
var c = Rh(u);
|
|
7238
7237
|
if (a.origin !== ja() && c.length > 1) {
|
|
7239
|
-
var s = c[0], l =
|
|
7238
|
+
var s = c[0], l = Ih(c, s[w.RESPONSE_END], n), p = s[w.RESPONSE_END], f = l[w.FETCH_START];
|
|
7240
7239
|
return f < p && (l = s, s = void 0), {
|
|
7241
7240
|
corsPreFlightRequest: s,
|
|
7242
7241
|
mainRequest: l
|
|
@@ -7246,14 +7245,14 @@ function Ba(t, e, n, r, i, o) {
|
|
|
7246
7245
|
mainRequest: u[0]
|
|
7247
7246
|
};
|
|
7248
7247
|
}
|
|
7249
|
-
function
|
|
7248
|
+
function Ih(t, e, n) {
|
|
7250
7249
|
for (var r = me(n), i = me(yt(e)), o = t[1], a, u = t.length, c = 1; c < u; c++) {
|
|
7251
7250
|
var s = t[c], l = me(yt(s[w.FETCH_START])), p = me(yt(s[w.RESPONSE_END])), f = r - p;
|
|
7252
7251
|
l >= i && (!a || f < a) && (a = f, o = s);
|
|
7253
7252
|
}
|
|
7254
7253
|
return o;
|
|
7255
7254
|
}
|
|
7256
|
-
function
|
|
7255
|
+
function Ph(t, e, n, r, i, o) {
|
|
7257
7256
|
var a = me(e), u = me(n), c = r.filter(function(s) {
|
|
7258
7257
|
var l = me(yt(s[w.FETCH_START])), p = me(yt(s[w.RESPONSE_END]));
|
|
7259
7258
|
return s.initiatorType.toLowerCase() === (o || "xmlhttprequest") && s.name === t && l >= a && p <= u;
|
|
@@ -7435,7 +7434,7 @@ var Yh = function() {
|
|
|
7435
7434
|
}, e.prototype.disable = function() {
|
|
7436
7435
|
window.removeEventListener("load", this._onDocumentLoaded);
|
|
7437
7436
|
}, e;
|
|
7438
|
-
}(
|
|
7437
|
+
}(Pa)
|
|
7439
7438
|
), Va = (
|
|
7440
7439
|
/** @class */
|
|
7441
7440
|
function() {
|
|
@@ -7792,18 +7791,18 @@ function Rd(t) {
|
|
|
7792
7791
|
if (t.byteLength !== void 0)
|
|
7793
7792
|
return t.byteLength;
|
|
7794
7793
|
if (t instanceof FormData)
|
|
7795
|
-
return
|
|
7794
|
+
return Pd(t);
|
|
7796
7795
|
if (t instanceof URLSearchParams)
|
|
7797
7796
|
return wr(t.toString());
|
|
7798
7797
|
if (typeof t == "string")
|
|
7799
7798
|
return wr(t);
|
|
7800
7799
|
Ha.warn("unknown body type");
|
|
7801
7800
|
}
|
|
7802
|
-
var
|
|
7801
|
+
var Id = new TextEncoder();
|
|
7803
7802
|
function wr(t) {
|
|
7804
|
-
return
|
|
7803
|
+
return Id.encode(t).byteLength;
|
|
7805
7804
|
}
|
|
7806
|
-
function
|
|
7805
|
+
function Pd(t) {
|
|
7807
7806
|
var e, n, r = 0;
|
|
7808
7807
|
try {
|
|
7809
7808
|
for (var i = xd(t.entries()), o = i.next(); !o.done; o = i.next()) {
|
|
@@ -7969,12 +7968,12 @@ var ji = "0.57.1", kd = /* @__PURE__ */ function() {
|
|
|
7969
7968
|
url: c
|
|
7970
7969
|
});
|
|
7971
7970
|
}
|
|
7972
|
-
function m(_, T,
|
|
7971
|
+
function m(_, T, I) {
|
|
7973
7972
|
try {
|
|
7974
|
-
var $ =
|
|
7973
|
+
var $ = I.clone(), M = I.clone(), F = $.body;
|
|
7975
7974
|
if (F) {
|
|
7976
|
-
var
|
|
7977
|
-
|
|
7975
|
+
var P = F.getReader(), H = function() {
|
|
7976
|
+
P.read().then(function(U) {
|
|
7978
7977
|
var le = U.done;
|
|
7979
7978
|
le ? y(_, M) : H();
|
|
7980
7979
|
}, function(U) {
|
|
@@ -7983,16 +7982,16 @@ var ji = "0.57.1", kd = /* @__PURE__ */ function() {
|
|
|
7983
7982
|
};
|
|
7984
7983
|
H();
|
|
7985
7984
|
} else
|
|
7986
|
-
y(_,
|
|
7985
|
+
y(_, I);
|
|
7987
7986
|
} finally {
|
|
7988
|
-
T(
|
|
7987
|
+
T(I);
|
|
7989
7988
|
}
|
|
7990
7989
|
}
|
|
7991
|
-
function v(_, T,
|
|
7990
|
+
function v(_, T, I) {
|
|
7992
7991
|
try {
|
|
7993
|
-
f(_,
|
|
7992
|
+
f(_, I);
|
|
7994
7993
|
} finally {
|
|
7995
|
-
T(
|
|
7994
|
+
T(I);
|
|
7996
7995
|
}
|
|
7997
7996
|
}
|
|
7998
7997
|
return new Promise(function(_, T) {
|
|
@@ -8444,8 +8443,8 @@ var ym = /* @__PURE__ */ function() {
|
|
|
8444
8443
|
var v = m.span, _ = m.spanUrl;
|
|
8445
8444
|
if (v && _) {
|
|
8446
8445
|
if (n.getConfig().measureRequestSize && f != null && f[0]) {
|
|
8447
|
-
var T = f[0],
|
|
8448
|
-
|
|
8446
|
+
var T = f[0], I = hm(T);
|
|
8447
|
+
I !== void 0 && v.setAttribute(cm, I);
|
|
8449
8448
|
}
|
|
8450
8449
|
L.with(C.setSpan(L.active(), v), function() {
|
|
8451
8450
|
n._tasksCount++, m.sendStartTime = ke(), v.addEvent(fe.METHOD_SEND), p.addEventListener("abort", a), p.addEventListener("error", o), p.addEventListener("load", c), p.addEventListener("timeout", u), m.callbackToRemoveEvents = function() {
|
|
@@ -8584,7 +8583,7 @@ var Ka = (
|
|
|
8584
8583
|
return this._delegate.shutdown();
|
|
8585
8584
|
}, t;
|
|
8586
8585
|
}()
|
|
8587
|
-
),
|
|
8586
|
+
), Im = /* @__PURE__ */ function() {
|
|
8588
8587
|
var t = function(e, n) {
|
|
8589
8588
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
8590
8589
|
r.__proto__ = i;
|
|
@@ -8604,7 +8603,7 @@ var Ka = (
|
|
|
8604
8603
|
}(), zi = (
|
|
8605
8604
|
/** @class */
|
|
8606
8605
|
function(t) {
|
|
8607
|
-
|
|
8606
|
+
Im(e, t);
|
|
8608
8607
|
function e(n, r, i) {
|
|
8609
8608
|
var o = t.call(this, n) || this;
|
|
8610
8609
|
return o.name = "OTLPExporterError", o.data = i, o.code = r, o;
|
|
@@ -8612,7 +8611,7 @@ var Ka = (
|
|
|
8612
8611
|
return e;
|
|
8613
8612
|
}(Error)
|
|
8614
8613
|
);
|
|
8615
|
-
function
|
|
8614
|
+
function Pm(t) {
|
|
8616
8615
|
if (!Number.isNaN(t) && Number.isFinite(t) && t > 0)
|
|
8617
8616
|
return t;
|
|
8618
8617
|
throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '" + t + "')");
|
|
@@ -8626,7 +8625,7 @@ function km(t) {
|
|
|
8626
8625
|
function Mm(t, e, n) {
|
|
8627
8626
|
var r, i, o, a, u, c;
|
|
8628
8627
|
return {
|
|
8629
|
-
timeoutMillis:
|
|
8628
|
+
timeoutMillis: Pm((i = (r = t.timeoutMillis) !== null && r !== void 0 ? r : e.timeoutMillis) !== null && i !== void 0 ? i : n.timeoutMillis),
|
|
8630
8629
|
concurrencyLimit: (a = (o = t.concurrencyLimit) !== null && o !== void 0 ? o : e.concurrencyLimit) !== null && a !== void 0 ? a : n.concurrencyLimit,
|
|
8631
8630
|
compression: (c = (u = t.compression) !== null && u !== void 0 ? u : e.compression) !== null && c !== void 0 ? c : n.compression
|
|
8632
8631
|
};
|
|
@@ -9996,10 +9995,10 @@ var Oy = function(t, e) {
|
|
|
9996
9995
|
return t.prototype.createAccumulation = function(e) {
|
|
9997
9996
|
return new Qn(e);
|
|
9998
9997
|
}, t.prototype.merge = function(e, n) {
|
|
9999
|
-
var r =
|
|
9998
|
+
var r = It(n.sampleTime) >= It(e.sampleTime) ? n : e;
|
|
10000
9999
|
return new Qn(e.startTime, r.toPointValue(), r.sampleTime);
|
|
10001
10000
|
}, t.prototype.diff = function(e, n) {
|
|
10002
|
-
var r =
|
|
10001
|
+
var r = It(n.sampleTime) >= It(e.sampleTime) ? n : e;
|
|
10003
10002
|
return new Qn(n.startTime, r.toPointValue(), r.sampleTime);
|
|
10004
10003
|
}, t.prototype.toMetricData = function(e, n, r, i) {
|
|
10005
10004
|
return {
|
|
@@ -10018,7 +10017,7 @@ var Oy = function(t, e) {
|
|
|
10018
10017
|
};
|
|
10019
10018
|
}, t;
|
|
10020
10019
|
}()
|
|
10021
|
-
),
|
|
10020
|
+
), Iy = function(t, e) {
|
|
10022
10021
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
10023
10022
|
if (!n) return t;
|
|
10024
10023
|
var r = n.call(t), i, o = [], a;
|
|
@@ -10068,7 +10067,7 @@ var Oy = function(t, e) {
|
|
|
10068
10067
|
aggregationTemporality: n,
|
|
10069
10068
|
dataPointType: ue.SUM,
|
|
10070
10069
|
dataPoints: r.map(function(o) {
|
|
10071
|
-
var a =
|
|
10070
|
+
var a = Iy(o, 2), u = a[0], c = a[1];
|
|
10072
10071
|
return {
|
|
10073
10072
|
attributes: u,
|
|
10074
10073
|
startTime: c.startTime,
|
|
@@ -10116,7 +10115,7 @@ var Oy = function(t, e) {
|
|
|
10116
10115
|
return Fy;
|
|
10117
10116
|
}, t;
|
|
10118
10117
|
}()
|
|
10119
|
-
),
|
|
10118
|
+
), Py = (
|
|
10120
10119
|
/** @class */
|
|
10121
10120
|
function(t) {
|
|
10122
10121
|
Be(e, t);
|
|
@@ -10224,7 +10223,7 @@ var Oy = function(t, e) {
|
|
|
10224
10223
|
return this._resolve(n).createAggregator(n);
|
|
10225
10224
|
}, e;
|
|
10226
10225
|
}(ge)
|
|
10227
|
-
), fs = new
|
|
10226
|
+
), fs = new Py(), hs = new ky(), ds = new My(), ms = new Dy(), $y = new jy(), Fy = new By(), Vy = function(t) {
|
|
10228
10227
|
return ge.Default();
|
|
10229
10228
|
}, Gy = function(t) {
|
|
10230
10229
|
return ae.CUMULATIVE;
|
|
@@ -10619,7 +10618,7 @@ var Oy = function(t, e) {
|
|
|
10619
10618
|
return o.scopeMetrics.length === 0 ? [
|
|
10620
10619
|
2
|
|
10621
10620
|
/*return*/
|
|
10622
|
-
] : [4,
|
|
10621
|
+
] : [4, If._export(this._exporter, o)];
|
|
10623
10622
|
case 6:
|
|
10624
10623
|
if (c = l.sent(), c.code !== Q.SUCCESS)
|
|
10625
10624
|
throw new Error("PeriodicExportingMetricReader: metrics export failed (error " + c.error + ")");
|
|
@@ -11994,11 +11993,11 @@ var wv = new Sv(), Ov = function(t, e, n, r) {
|
|
|
11994
11993
|
}
|
|
11995
11994
|
}
|
|
11996
11995
|
return o;
|
|
11997
|
-
},
|
|
11996
|
+
}, Iv = function(t, e, n) {
|
|
11998
11997
|
if (arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
|
|
11999
11998
|
(o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
|
|
12000
11999
|
return t.concat(o || Array.prototype.slice.call(e));
|
|
12001
|
-
},
|
|
12000
|
+
}, Pv = (
|
|
12002
12001
|
/** @class */
|
|
12003
12002
|
function() {
|
|
12004
12003
|
function t(e, n) {
|
|
@@ -12018,7 +12017,7 @@ var wv = new Sv(), Ov = function(t, e, n, r) {
|
|
|
12018
12017
|
case 0:
|
|
12019
12018
|
return [4, c.collect(this, n, e)];
|
|
12020
12019
|
case 1:
|
|
12021
|
-
return s = l.sent(), s?.scopeMetrics != null && r.push(s.scopeMetrics), s?.errors != null && i.push.apply(i,
|
|
12020
|
+
return s = l.sent(), s?.scopeMetrics != null && r.push(s.scopeMetrics), s?.errors != null && i.push.apply(i, Iv([], Rv(s.errors), !1)), [
|
|
12022
12021
|
2
|
|
12023
12022
|
/*return*/
|
|
12024
12023
|
];
|
|
@@ -12216,7 +12215,7 @@ var Mv = (
|
|
|
12216
12215
|
schemaUrl: r.schemaUrl
|
|
12217
12216
|
}).meter;
|
|
12218
12217
|
}, t.prototype.addMetricReader = function(e) {
|
|
12219
|
-
var n = new
|
|
12218
|
+
var n = new Pv(this._sharedState, e);
|
|
12220
12219
|
e.setMetricProducer(n), this._sharedState.metricCollectors.push(n);
|
|
12221
12220
|
}, t.prototype.shutdown = function(e) {
|
|
12222
12221
|
return co(this, void 0, void 0, function() {
|
|
@@ -12970,7 +12969,7 @@ var Cg = (
|
|
|
12970
12969
|
}
|
|
12971
12970
|
e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
12972
12971
|
};
|
|
12973
|
-
}(),
|
|
12972
|
+
}(), Ig = (
|
|
12974
12973
|
/** @class */
|
|
12975
12974
|
function(t) {
|
|
12976
12975
|
Rg(e, t);
|
|
@@ -12980,7 +12979,7 @@ var Cg = (
|
|
|
12980
12979
|
return e;
|
|
12981
12980
|
}(Cg)
|
|
12982
12981
|
);
|
|
12983
|
-
function
|
|
12982
|
+
function Pg(t, e) {
|
|
12984
12983
|
const n = t.spanContext();
|
|
12985
12984
|
return {
|
|
12986
12985
|
name: t.name,
|
|
@@ -13011,7 +13010,7 @@ function kg(t, e) {
|
|
|
13011
13010
|
o.spanContext().spanId
|
|
13012
13011
|
));
|
|
13013
13012
|
const a = e.shouldSample(o);
|
|
13014
|
-
a.sample ? a.attributes ? r[o.spanContext().spanId] =
|
|
13013
|
+
a.sample ? a.attributes ? r[o.spanContext().spanId] = Pg(
|
|
13015
13014
|
o,
|
|
13016
13015
|
a.attributes
|
|
13017
13016
|
) : r[o.spanContext().spanId] = o : n.push(o.spanContext().spanId);
|
|
@@ -13049,7 +13048,7 @@ class Mg extends Og {
|
|
|
13049
13048
|
super.export(r, o);
|
|
13050
13049
|
}
|
|
13051
13050
|
}
|
|
13052
|
-
class Dg extends
|
|
13051
|
+
class Dg extends Ig {
|
|
13053
13052
|
constructor(e) {
|
|
13054
13053
|
super(J(k({}, e), {
|
|
13055
13054
|
headers: {}
|
|
@@ -13074,7 +13073,7 @@ const Ug = "OT_ZONE_CONTEXT", jg = "Navigation:";
|
|
|
13074
13073
|
function Bg() {
|
|
13075
13074
|
return !1;
|
|
13076
13075
|
}
|
|
13077
|
-
const Rr = class we extends
|
|
13076
|
+
const Rr = class we extends Pa {
|
|
13078
13077
|
constructor(e = {}) {
|
|
13079
13078
|
super(
|
|
13080
13079
|
we.moduleName,
|
|
@@ -13509,10 +13508,10 @@ const mn = "highlight.record", Fg = "launchdarkly.js.log", Vg = (t, e) => {
|
|
|
13509
13508
|
resource: T,
|
|
13510
13509
|
spanProcessors: [_]
|
|
13511
13510
|
}), C.setGlobalTracerProvider(Oe.tracerProvider);
|
|
13512
|
-
const
|
|
13511
|
+
const I = new Dg(J(k({}, m), {
|
|
13513
13512
|
url: t.otlpEndpoint + "/v1/metrics"
|
|
13514
13513
|
})), $ = new Yy({
|
|
13515
|
-
exporter:
|
|
13514
|
+
exporter: I,
|
|
13516
13515
|
exportIntervalMillis: m.timeoutMillis,
|
|
13517
13516
|
exportTimeoutMillis: m.timeoutMillis
|
|
13518
13517
|
});
|
|
@@ -13531,23 +13530,23 @@ const mn = "highlight.record", Fg = "launchdarkly.js.log", Vg = (t, e) => {
|
|
|
13531
13530
|
propagateTraceHeaderCorsUrls: _o(
|
|
13532
13531
|
t.tracingOrigins
|
|
13533
13532
|
),
|
|
13534
|
-
applyCustomAttributesOnSpan: (
|
|
13533
|
+
applyCustomAttributesOnSpan: (P, H, U) => _n(void 0, null, function* () {
|
|
13535
13534
|
var le, ie, X;
|
|
13536
|
-
if (!
|
|
13535
|
+
if (!P.attributes)
|
|
13537
13536
|
return;
|
|
13538
|
-
const Fe =
|
|
13537
|
+
const Fe = P;
|
|
13539
13538
|
if (Fe.attributes[mn] === !1)
|
|
13540
13539
|
return;
|
|
13541
13540
|
const nt = Fe.attributes["http.url"], h = (le = H.method) != null ? le : "GET";
|
|
13542
|
-
if (
|
|
13543
|
-
|
|
13541
|
+
if (P.updateName(yo(nt, h, H.body)), !(U instanceof Response)) {
|
|
13542
|
+
P.setAttributes({
|
|
13544
13543
|
"http.response.error": U.message,
|
|
13545
13544
|
"http.response.status": U.status
|
|
13546
13545
|
});
|
|
13547
13546
|
return;
|
|
13548
13547
|
}
|
|
13549
13548
|
vo(
|
|
13550
|
-
|
|
13549
|
+
P,
|
|
13551
13550
|
H.body,
|
|
13552
13551
|
H.headers,
|
|
13553
13552
|
t.networkRecordingOptions
|
|
@@ -13557,7 +13556,7 @@ const mn = "highlight.record", Fg = "launchdarkly.js.log", Vg = (t, e) => {
|
|
|
13557
13556
|
(ie = t.networkRecordingOptions) == null ? void 0 : ie.bodyKeysToRecord,
|
|
13558
13557
|
(X = t.networkRecordingOptions) == null ? void 0 : X.networkBodyKeysToRedact
|
|
13559
13558
|
);
|
|
13560
|
-
|
|
13559
|
+
P.setAttribute("http.response.body", g);
|
|
13561
13560
|
})
|
|
13562
13561
|
})
|
|
13563
13562
|
), ((l = t.instrumentations) == null ? void 0 : l["@opentelemetry/instrumentation-xml-http-request"]) !== !1 && M.push(
|
|
@@ -13565,18 +13564,18 @@ const mn = "highlight.record", Fg = "launchdarkly.js.log", Vg = (t, e) => {
|
|
|
13565
13564
|
propagateTraceHeaderCorsUrls: _o(
|
|
13566
13565
|
t.tracingOrigins
|
|
13567
13566
|
),
|
|
13568
|
-
applyCustomAttributesOnSpan: (
|
|
13567
|
+
applyCustomAttributesOnSpan: (P, H) => {
|
|
13569
13568
|
var U, le;
|
|
13570
13569
|
const ie = H;
|
|
13571
|
-
if (!
|
|
13570
|
+
if (!P.attributes || P.attributes[mn] === !1)
|
|
13572
13571
|
return;
|
|
13573
13572
|
const X = yo(
|
|
13574
13573
|
ie._url,
|
|
13575
13574
|
ie._method,
|
|
13576
13575
|
H.responseText
|
|
13577
13576
|
);
|
|
13578
|
-
|
|
13579
|
-
|
|
13577
|
+
P.updateName(X), vo(
|
|
13578
|
+
P,
|
|
13580
13579
|
ie._body,
|
|
13581
13580
|
ie._requestHeaders,
|
|
13582
13581
|
t.networkRecordingOptions
|
|
@@ -13587,7 +13586,7 @@ const mn = "highlight.record", Fg = "launchdarkly.js.log", Vg = (t, e) => {
|
|
|
13587
13586
|
(le = t.networkRecordingOptions) == null ? void 0 : le.bodyKeysToRecord,
|
|
13588
13587
|
ie._requestHeaders
|
|
13589
13588
|
);
|
|
13590
|
-
|
|
13589
|
+
P.setAttribute("http.request.body", Fe);
|
|
13591
13590
|
}
|
|
13592
13591
|
})
|
|
13593
13592
|
)), Ff({ instrumentations: M });
|
|
@@ -13649,7 +13648,7 @@ const ws = "highlight-browser", Gt = ws, mo = () => {
|
|
|
13649
13648
|
let s = `${e.toUpperCase()} - ${c}`;
|
|
13650
13649
|
try {
|
|
13651
13650
|
if (a = typeof n == "string" ? JSON.parse(n) : n, a && a.query) {
|
|
13652
|
-
const l =
|
|
13651
|
+
const l = Pr(a.query), p = ((r = l.definitions[0]) == null ? void 0 : r.kind) === "OperationDefinition" ? (o = (i = l.definitions[0]) == null ? void 0 : i.name) == null ? void 0 : o.value : void 0;
|
|
13653
13652
|
p && (s = `${p} (GraphQL: ${u.host + u.pathname})`);
|
|
13654
13653
|
}
|
|
13655
13654
|
} catch {
|
|
@@ -13811,7 +13810,7 @@ const zg = (t, e) => {
|
|
|
13811
13810
|
});
|
|
13812
13811
|
}, u = () => {
|
|
13813
13812
|
var c;
|
|
13814
|
-
return (c = n?.event) != null && c.target ?
|
|
13813
|
+
return (c = n?.event) != null && c.target ? Pc(n.event.target) : "";
|
|
13815
13814
|
};
|
|
13816
13815
|
return window.addEventListener("click", i, !0), window.addEventListener("keydown", i, !0), () => {
|
|
13817
13816
|
window.removeEventListener("keydown", i, !0), window.removeEventListener("click", i, !0);
|
|
@@ -14026,7 +14025,7 @@ const To = () => {
|
|
|
14026
14025
|
};
|
|
14027
14026
|
class a_ {
|
|
14028
14027
|
constructor(e) {
|
|
14029
|
-
D(this, "sessionSecureID"), D(this, "
|
|
14028
|
+
D(this, "sessionSecureID"), D(this, "organizationID"), D(this, "_integrations", []), D(this, "_gauges", /* @__PURE__ */ new Map()), D(this, "_counters", /* @__PURE__ */ new Map()), D(this, "_histograms", /* @__PURE__ */ new Map()), D(this, "_up_down_counters", /* @__PURE__ */ new Map()), D(this, "sampler", new o_()), D(this, "graphqlSDK"), this.sessionSecureID = e.sessionSecureId, typeof e.projectId == "string" ? this.organizationID = e.projectId : this.organizationID = e.projectId.toString(), Vg(e, this.sampler);
|
|
14030
14029
|
const n = new Lu(`${e.backendUrl}`, {
|
|
14031
14030
|
headers: {}
|
|
14032
14031
|
});
|
|
@@ -14039,7 +14038,7 @@ class a_ {
|
|
|
14039
14038
|
return _n(this, null, function* () {
|
|
14040
14039
|
try {
|
|
14041
14040
|
const e = yield this.graphqlSDK.GetSamplingConfig({
|
|
14042
|
-
|
|
14041
|
+
organization_verbose_id: `${this.organizationID}`
|
|
14043
14042
|
});
|
|
14044
14043
|
this.sampler.setConfig(e.sampling);
|
|
14045
14044
|
} catch (e) {
|
|
@@ -14183,7 +14182,7 @@ class a_ {
|
|
|
14183
14182
|
);
|
|
14184
14183
|
}
|
|
14185
14184
|
register(e, n) {
|
|
14186
|
-
this._integrations.push(new
|
|
14185
|
+
this._integrations.push(new Ic(e, n));
|
|
14187
14186
|
}
|
|
14188
14187
|
getHooks(e) {
|
|
14189
14188
|
return this._integrations.flatMap((n) => {
|
|
@@ -14269,7 +14268,7 @@ class a_ {
|
|
|
14269
14268
|
);
|
|
14270
14269
|
}
|
|
14271
14270
|
}
|
|
14272
|
-
class
|
|
14271
|
+
class __ extends Mc {
|
|
14273
14272
|
constructor(e, n) {
|
|
14274
14273
|
var r, i, o, a, u, c;
|
|
14275
14274
|
if (typeof window > "u" || typeof document > "u") {
|
|
@@ -14364,6 +14363,6 @@ class v_ extends Mc {
|
|
|
14364
14363
|
}
|
|
14365
14364
|
export {
|
|
14366
14365
|
Le as LDObserve,
|
|
14367
|
-
|
|
14366
|
+
__ as default
|
|
14368
14367
|
};
|
|
14369
14368
|
//# sourceMappingURL=observability.js.map
|