agentv 3.1.0 → 3.2.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/dist/agentv-provider-5CJVBBGG-2XVZBW7L.js +9 -0
- package/dist/agentv-provider-5CJVBBGG-2XVZBW7L.js.map +1 -0
- package/dist/chunk-3L2L5GIL.js +51 -0
- package/dist/chunk-3L2L5GIL.js.map +1 -0
- package/dist/chunk-5H446C7X.js +50 -0
- package/dist/chunk-5H446C7X.js.map +1 -0
- package/dist/chunk-6GSYTMXD.js +31520 -0
- package/dist/chunk-6GSYTMXD.js.map +1 -0
- package/dist/chunk-BL4PVUAT.js +261 -0
- package/dist/chunk-BL4PVUAT.js.map +1 -0
- package/dist/chunk-C5GOHBQM.js +84 -0
- package/dist/chunk-C5GOHBQM.js.map +1 -0
- package/dist/chunk-FTPA72PY.js +6149 -0
- package/dist/chunk-FTPA72PY.js.map +1 -0
- package/dist/chunk-JK6V4KVD.js +114 -0
- package/dist/chunk-JK6V4KVD.js.map +1 -0
- package/dist/chunk-LRULMAAA.js +1711 -0
- package/dist/chunk-LRULMAAA.js.map +1 -0
- package/dist/chunk-OR4WXZAF.js +24302 -0
- package/dist/chunk-OR4WXZAF.js.map +1 -0
- package/dist/chunk-PCQA43SA.js +4248 -0
- package/dist/chunk-PCQA43SA.js.map +1 -0
- package/dist/chunk-SR4I5KET.js +1238 -0
- package/dist/chunk-SR4I5KET.js.map +1 -0
- package/dist/chunk-VQ2ZO7XJ.js +2098 -0
- package/dist/chunk-VQ2ZO7XJ.js.map +1 -0
- package/dist/chunk-XALGXSKB.js +21 -0
- package/dist/chunk-XALGXSKB.js.map +1 -0
- package/dist/chunk-XOSNETAV.js +565 -0
- package/dist/chunk-XOSNETAV.js.map +1 -0
- package/dist/cli.js +29 -0
- package/dist/cli.js.map +1 -0
- package/dist/dist-3BMOAU4X.js +305 -0
- package/dist/dist-3BMOAU4X.js.map +1 -0
- package/dist/esm-5Q4BZALM-5REQWAUV.js +924 -0
- package/dist/esm-5Q4BZALM-5REQWAUV.js.map +1 -0
- package/dist/esm-CZAWIY6F.js +32 -0
- package/dist/esm-CZAWIY6F.js.map +1 -0
- package/dist/esm-QNEMCJPL.js +933 -0
- package/dist/esm-QNEMCJPL.js.map +1 -0
- package/dist/esm-R77SNOF5.js +65 -0
- package/dist/esm-R77SNOF5.js.map +1 -0
- package/dist/esm-RVQPUGWH.js +1207 -0
- package/dist/esm-RVQPUGWH.js.map +1 -0
- package/dist/getMachineId-bsd-HSK5LZMG.js +41 -0
- package/dist/getMachineId-bsd-HSK5LZMG.js.map +1 -0
- package/dist/getMachineId-darwin-4DP6CCJV.js +41 -0
- package/dist/getMachineId-darwin-4DP6CCJV.js.map +1 -0
- package/dist/getMachineId-linux-44LJ5UJB.js +33 -0
- package/dist/getMachineId-linux-44LJ5UJB.js.map +1 -0
- package/dist/getMachineId-unsupported-NVK6IATM.js +24 -0
- package/dist/getMachineId-unsupported-NVK6IATM.js.map +1 -0
- package/dist/getMachineId-win-YZ36S7VA.js +43 -0
- package/dist/getMachineId-win-YZ36S7VA.js.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/interactive-DLHPNSZ7.js +334 -0
- package/dist/interactive-DLHPNSZ7.js.map +1 -0
- package/dist/otlp-json-file-exporter-77FDBRSY-EZAPHWP6.js +9 -0
- package/dist/otlp-json-file-exporter-77FDBRSY-EZAPHWP6.js.map +1 -0
- package/dist/simple-trace-file-exporter-S76DMABU-5FCJESD2.js +9 -0
- package/dist/simple-trace-file-exporter-S76DMABU-5FCJESD2.js.map +1 -0
- package/dist/src-ML4D2MC2.js +1733 -0
- package/dist/src-ML4D2MC2.js.map +1 -0
- package/dist/templates/.agentv/targets.yaml +5 -24
- package/dist/token-POXF46NU.js +66 -0
- package/dist/token-POXF46NU.js.map +1 -0
- package/dist/token-util-6GWYZWGE.js +8 -0
- package/dist/token-util-6GWYZWGE.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1238 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
ATTR_TELEMETRY_SDK_LANGUAGE,
|
|
4
|
+
ATTR_TELEMETRY_SDK_NAME,
|
|
5
|
+
ATTR_TELEMETRY_SDK_VERSION,
|
|
6
|
+
TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,
|
|
7
|
+
init_esm as init_esm2
|
|
8
|
+
} from "./chunk-VQ2ZO7XJ.js";
|
|
9
|
+
import {
|
|
10
|
+
DiagLogLevel,
|
|
11
|
+
TraceFlags,
|
|
12
|
+
baggageEntryMetadataFromString,
|
|
13
|
+
context,
|
|
14
|
+
createContextKey,
|
|
15
|
+
diag,
|
|
16
|
+
init_esm,
|
|
17
|
+
isSpanContextValid,
|
|
18
|
+
propagation,
|
|
19
|
+
trace
|
|
20
|
+
} from "./chunk-LRULMAAA.js";
|
|
21
|
+
import {
|
|
22
|
+
__esm,
|
|
23
|
+
__export
|
|
24
|
+
} from "./chunk-5H446C7X.js";
|
|
25
|
+
|
|
26
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/platform/node/environment.js
|
|
27
|
+
import { inspect } from "util";
|
|
28
|
+
function getNumberFromEnv(key) {
|
|
29
|
+
const raw = process.env[key];
|
|
30
|
+
if (raw == null || raw.trim() === "") {
|
|
31
|
+
return void 0;
|
|
32
|
+
}
|
|
33
|
+
const value = Number(raw);
|
|
34
|
+
if (isNaN(value)) {
|
|
35
|
+
diag.warn(`Unknown value ${inspect(raw)} for ${key}, expected a number, using defaults`);
|
|
36
|
+
return void 0;
|
|
37
|
+
}
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
function getStringFromEnv(key) {
|
|
41
|
+
const raw = process.env[key];
|
|
42
|
+
if (raw == null || raw.trim() === "") {
|
|
43
|
+
return void 0;
|
|
44
|
+
}
|
|
45
|
+
return raw;
|
|
46
|
+
}
|
|
47
|
+
function getBooleanFromEnv(key) {
|
|
48
|
+
const raw = process.env[key]?.trim().toLowerCase();
|
|
49
|
+
if (raw == null || raw === "") {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
if (raw === "true") {
|
|
53
|
+
return true;
|
|
54
|
+
} else if (raw === "false") {
|
|
55
|
+
return false;
|
|
56
|
+
} else {
|
|
57
|
+
diag.warn(`Unknown value ${inspect(raw)} for ${key}, expected 'true' or 'false', falling back to 'false' (default)`);
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function getStringListFromEnv(key) {
|
|
62
|
+
return getStringFromEnv(key)?.split(",").map((v) => v.trim()).filter((s) => s !== "");
|
|
63
|
+
}
|
|
64
|
+
var init_environment = __esm({
|
|
65
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/platform/node/environment.js"() {
|
|
66
|
+
"use strict";
|
|
67
|
+
init_esm();
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/version.js
|
|
72
|
+
var VERSION;
|
|
73
|
+
var init_version = __esm({
|
|
74
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/version.js"() {
|
|
75
|
+
"use strict";
|
|
76
|
+
VERSION = "2.5.1";
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/semconv.js
|
|
81
|
+
var ATTR_PROCESS_RUNTIME_NAME;
|
|
82
|
+
var init_semconv = __esm({
|
|
83
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/semconv.js"() {
|
|
84
|
+
"use strict";
|
|
85
|
+
ATTR_PROCESS_RUNTIME_NAME = "process.runtime.name";
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/platform/node/sdk-info.js
|
|
90
|
+
var SDK_INFO;
|
|
91
|
+
var init_sdk_info = __esm({
|
|
92
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/platform/node/sdk-info.js"() {
|
|
93
|
+
"use strict";
|
|
94
|
+
init_version();
|
|
95
|
+
init_esm2();
|
|
96
|
+
init_semconv();
|
|
97
|
+
SDK_INFO = {
|
|
98
|
+
[ATTR_TELEMETRY_SDK_NAME]: "opentelemetry",
|
|
99
|
+
[ATTR_PROCESS_RUNTIME_NAME]: "node",
|
|
100
|
+
[ATTR_TELEMETRY_SDK_LANGUAGE]: TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,
|
|
101
|
+
[ATTR_TELEMETRY_SDK_VERSION]: VERSION
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/globalThis.js
|
|
107
|
+
var _globalThis;
|
|
108
|
+
var init_globalThis = __esm({
|
|
109
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/globalThis.js"() {
|
|
110
|
+
"use strict";
|
|
111
|
+
_globalThis = globalThis;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/platform/node/index.js
|
|
116
|
+
var otperformance;
|
|
117
|
+
var init_node = __esm({
|
|
118
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/platform/node/index.js"() {
|
|
119
|
+
"use strict";
|
|
120
|
+
init_environment();
|
|
121
|
+
init_globalThis();
|
|
122
|
+
init_sdk_info();
|
|
123
|
+
otperformance = performance;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/platform/index.js
|
|
128
|
+
var init_platform = __esm({
|
|
129
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/platform/index.js"() {
|
|
130
|
+
"use strict";
|
|
131
|
+
init_node();
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js
|
|
136
|
+
function suppressTracing(context2) {
|
|
137
|
+
return context2.setValue(SUPPRESS_TRACING_KEY, true);
|
|
138
|
+
}
|
|
139
|
+
function unsuppressTracing(context2) {
|
|
140
|
+
return context2.deleteValue(SUPPRESS_TRACING_KEY);
|
|
141
|
+
}
|
|
142
|
+
function isTracingSuppressed(context2) {
|
|
143
|
+
return context2.getValue(SUPPRESS_TRACING_KEY) === true;
|
|
144
|
+
}
|
|
145
|
+
var SUPPRESS_TRACING_KEY;
|
|
146
|
+
var init_suppress_tracing = __esm({
|
|
147
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"() {
|
|
148
|
+
"use strict";
|
|
149
|
+
init_esm();
|
|
150
|
+
SUPPRESS_TRACING_KEY = createContextKey("OpenTelemetry SDK Context Key SUPPRESS_TRACING");
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/baggage/constants.js
|
|
155
|
+
var BAGGAGE_KEY_PAIR_SEPARATOR, BAGGAGE_PROPERTIES_SEPARATOR, BAGGAGE_ITEMS_SEPARATOR, BAGGAGE_HEADER, BAGGAGE_MAX_NAME_VALUE_PAIRS, BAGGAGE_MAX_PER_NAME_VALUE_PAIRS, BAGGAGE_MAX_TOTAL_LENGTH;
|
|
156
|
+
var init_constants = __esm({
|
|
157
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/baggage/constants.js"() {
|
|
158
|
+
"use strict";
|
|
159
|
+
BAGGAGE_KEY_PAIR_SEPARATOR = "=";
|
|
160
|
+
BAGGAGE_PROPERTIES_SEPARATOR = ";";
|
|
161
|
+
BAGGAGE_ITEMS_SEPARATOR = ",";
|
|
162
|
+
BAGGAGE_HEADER = "baggage";
|
|
163
|
+
BAGGAGE_MAX_NAME_VALUE_PAIRS = 180;
|
|
164
|
+
BAGGAGE_MAX_PER_NAME_VALUE_PAIRS = 4096;
|
|
165
|
+
BAGGAGE_MAX_TOTAL_LENGTH = 8192;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/baggage/utils.js
|
|
170
|
+
function serializeKeyPairs(keyPairs) {
|
|
171
|
+
return keyPairs.reduce((hValue, current) => {
|
|
172
|
+
const value = `${hValue}${hValue !== "" ? BAGGAGE_ITEMS_SEPARATOR : ""}${current}`;
|
|
173
|
+
return value.length > BAGGAGE_MAX_TOTAL_LENGTH ? hValue : value;
|
|
174
|
+
}, "");
|
|
175
|
+
}
|
|
176
|
+
function getKeyPairs(baggage) {
|
|
177
|
+
return baggage.getAllEntries().map(([key, value]) => {
|
|
178
|
+
let entry = `${encodeURIComponent(key)}=${encodeURIComponent(value.value)}`;
|
|
179
|
+
if (value.metadata !== void 0) {
|
|
180
|
+
entry += BAGGAGE_PROPERTIES_SEPARATOR + value.metadata.toString();
|
|
181
|
+
}
|
|
182
|
+
return entry;
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
function parsePairKeyValue(entry) {
|
|
186
|
+
if (!entry)
|
|
187
|
+
return;
|
|
188
|
+
const metadataSeparatorIndex = entry.indexOf(BAGGAGE_PROPERTIES_SEPARATOR);
|
|
189
|
+
const keyPairPart = metadataSeparatorIndex === -1 ? entry : entry.substring(0, metadataSeparatorIndex);
|
|
190
|
+
const separatorIndex = keyPairPart.indexOf(BAGGAGE_KEY_PAIR_SEPARATOR);
|
|
191
|
+
if (separatorIndex <= 0)
|
|
192
|
+
return;
|
|
193
|
+
const rawKey = keyPairPart.substring(0, separatorIndex).trim();
|
|
194
|
+
const rawValue = keyPairPart.substring(separatorIndex + 1).trim();
|
|
195
|
+
if (!rawKey || !rawValue)
|
|
196
|
+
return;
|
|
197
|
+
let key;
|
|
198
|
+
let value;
|
|
199
|
+
try {
|
|
200
|
+
key = decodeURIComponent(rawKey);
|
|
201
|
+
value = decodeURIComponent(rawValue);
|
|
202
|
+
} catch {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
let metadata;
|
|
206
|
+
if (metadataSeparatorIndex !== -1 && metadataSeparatorIndex < entry.length - 1) {
|
|
207
|
+
const metadataString = entry.substring(metadataSeparatorIndex + 1);
|
|
208
|
+
metadata = baggageEntryMetadataFromString(metadataString);
|
|
209
|
+
}
|
|
210
|
+
return { key, value, metadata };
|
|
211
|
+
}
|
|
212
|
+
function parseKeyPairsIntoRecord(value) {
|
|
213
|
+
const result = {};
|
|
214
|
+
if (typeof value === "string" && value.length > 0) {
|
|
215
|
+
value.split(BAGGAGE_ITEMS_SEPARATOR).forEach((entry) => {
|
|
216
|
+
const keyPair = parsePairKeyValue(entry);
|
|
217
|
+
if (keyPair !== void 0 && keyPair.value.length > 0) {
|
|
218
|
+
result[keyPair.key] = keyPair.value;
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
return result;
|
|
223
|
+
}
|
|
224
|
+
var init_utils = __esm({
|
|
225
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/baggage/utils.js"() {
|
|
226
|
+
"use strict";
|
|
227
|
+
init_esm();
|
|
228
|
+
init_constants();
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js
|
|
233
|
+
var W3CBaggagePropagator;
|
|
234
|
+
var init_W3CBaggagePropagator = __esm({
|
|
235
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js"() {
|
|
236
|
+
"use strict";
|
|
237
|
+
init_esm();
|
|
238
|
+
init_suppress_tracing();
|
|
239
|
+
init_constants();
|
|
240
|
+
init_utils();
|
|
241
|
+
W3CBaggagePropagator = class {
|
|
242
|
+
inject(context2, carrier, setter) {
|
|
243
|
+
const baggage = propagation.getBaggage(context2);
|
|
244
|
+
if (!baggage || isTracingSuppressed(context2))
|
|
245
|
+
return;
|
|
246
|
+
const keyPairs = getKeyPairs(baggage).filter((pair) => {
|
|
247
|
+
return pair.length <= BAGGAGE_MAX_PER_NAME_VALUE_PAIRS;
|
|
248
|
+
}).slice(0, BAGGAGE_MAX_NAME_VALUE_PAIRS);
|
|
249
|
+
const headerValue = serializeKeyPairs(keyPairs);
|
|
250
|
+
if (headerValue.length > 0) {
|
|
251
|
+
setter.set(carrier, BAGGAGE_HEADER, headerValue);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
extract(context2, carrier, getter) {
|
|
255
|
+
const headerValue = getter.get(carrier, BAGGAGE_HEADER);
|
|
256
|
+
const baggageString = Array.isArray(headerValue) ? headerValue.join(BAGGAGE_ITEMS_SEPARATOR) : headerValue;
|
|
257
|
+
if (!baggageString)
|
|
258
|
+
return context2;
|
|
259
|
+
const baggage = {};
|
|
260
|
+
if (baggageString.length === 0) {
|
|
261
|
+
return context2;
|
|
262
|
+
}
|
|
263
|
+
const pairs = baggageString.split(BAGGAGE_ITEMS_SEPARATOR);
|
|
264
|
+
pairs.forEach((entry) => {
|
|
265
|
+
const keyPair = parsePairKeyValue(entry);
|
|
266
|
+
if (keyPair) {
|
|
267
|
+
const baggageEntry = { value: keyPair.value };
|
|
268
|
+
if (keyPair.metadata) {
|
|
269
|
+
baggageEntry.metadata = keyPair.metadata;
|
|
270
|
+
}
|
|
271
|
+
baggage[keyPair.key] = baggageEntry;
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
if (Object.entries(baggage).length === 0) {
|
|
275
|
+
return context2;
|
|
276
|
+
}
|
|
277
|
+
return propagation.setBaggage(context2, propagation.createBaggage(baggage));
|
|
278
|
+
}
|
|
279
|
+
fields() {
|
|
280
|
+
return [BAGGAGE_HEADER];
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/anchored-clock.js
|
|
287
|
+
var AnchoredClock;
|
|
288
|
+
var init_anchored_clock = __esm({
|
|
289
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/anchored-clock.js"() {
|
|
290
|
+
"use strict";
|
|
291
|
+
AnchoredClock = class {
|
|
292
|
+
_monotonicClock;
|
|
293
|
+
_epochMillis;
|
|
294
|
+
_performanceMillis;
|
|
295
|
+
/**
|
|
296
|
+
* Create a new AnchoredClock anchored to the current time returned by systemClock.
|
|
297
|
+
*
|
|
298
|
+
* @param systemClock should be a clock that returns the number of milliseconds since January 1 1970 such as Date
|
|
299
|
+
* @param monotonicClock should be a clock that counts milliseconds monotonically such as window.performance or perf_hooks.performance
|
|
300
|
+
*/
|
|
301
|
+
constructor(systemClock, monotonicClock) {
|
|
302
|
+
this._monotonicClock = monotonicClock;
|
|
303
|
+
this._epochMillis = systemClock.now();
|
|
304
|
+
this._performanceMillis = monotonicClock.now();
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Returns the current time by adding the number of milliseconds since the
|
|
308
|
+
* AnchoredClock was created to the creation epoch time
|
|
309
|
+
*/
|
|
310
|
+
now() {
|
|
311
|
+
const delta = this._monotonicClock.now() - this._performanceMillis;
|
|
312
|
+
return this._epochMillis + delta;
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/attributes.js
|
|
319
|
+
function sanitizeAttributes(attributes) {
|
|
320
|
+
const out = {};
|
|
321
|
+
if (typeof attributes !== "object" || attributes == null) {
|
|
322
|
+
return out;
|
|
323
|
+
}
|
|
324
|
+
for (const key in attributes) {
|
|
325
|
+
if (!Object.prototype.hasOwnProperty.call(attributes, key)) {
|
|
326
|
+
continue;
|
|
327
|
+
}
|
|
328
|
+
if (!isAttributeKey(key)) {
|
|
329
|
+
diag.warn(`Invalid attribute key: ${key}`);
|
|
330
|
+
continue;
|
|
331
|
+
}
|
|
332
|
+
const val = attributes[key];
|
|
333
|
+
if (!isAttributeValue(val)) {
|
|
334
|
+
diag.warn(`Invalid attribute value set for key: ${key}`);
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
if (Array.isArray(val)) {
|
|
338
|
+
out[key] = val.slice();
|
|
339
|
+
} else {
|
|
340
|
+
out[key] = val;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
return out;
|
|
344
|
+
}
|
|
345
|
+
function isAttributeKey(key) {
|
|
346
|
+
return typeof key === "string" && key !== "";
|
|
347
|
+
}
|
|
348
|
+
function isAttributeValue(val) {
|
|
349
|
+
if (val == null) {
|
|
350
|
+
return true;
|
|
351
|
+
}
|
|
352
|
+
if (Array.isArray(val)) {
|
|
353
|
+
return isHomogeneousAttributeValueArray(val);
|
|
354
|
+
}
|
|
355
|
+
return isValidPrimitiveAttributeValueType(typeof val);
|
|
356
|
+
}
|
|
357
|
+
function isHomogeneousAttributeValueArray(arr) {
|
|
358
|
+
let type;
|
|
359
|
+
for (const element of arr) {
|
|
360
|
+
if (element == null)
|
|
361
|
+
continue;
|
|
362
|
+
const elementType = typeof element;
|
|
363
|
+
if (elementType === type) {
|
|
364
|
+
continue;
|
|
365
|
+
}
|
|
366
|
+
if (!type) {
|
|
367
|
+
if (isValidPrimitiveAttributeValueType(elementType)) {
|
|
368
|
+
type = elementType;
|
|
369
|
+
continue;
|
|
370
|
+
}
|
|
371
|
+
return false;
|
|
372
|
+
}
|
|
373
|
+
return false;
|
|
374
|
+
}
|
|
375
|
+
return true;
|
|
376
|
+
}
|
|
377
|
+
function isValidPrimitiveAttributeValueType(valType) {
|
|
378
|
+
switch (valType) {
|
|
379
|
+
case "number":
|
|
380
|
+
case "boolean":
|
|
381
|
+
case "string":
|
|
382
|
+
return true;
|
|
383
|
+
}
|
|
384
|
+
return false;
|
|
385
|
+
}
|
|
386
|
+
var init_attributes = __esm({
|
|
387
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/attributes.js"() {
|
|
388
|
+
"use strict";
|
|
389
|
+
init_esm();
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
|
|
393
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js
|
|
394
|
+
function loggingErrorHandler() {
|
|
395
|
+
return (ex) => {
|
|
396
|
+
diag.error(stringifyException(ex));
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
function stringifyException(ex) {
|
|
400
|
+
if (typeof ex === "string") {
|
|
401
|
+
return ex;
|
|
402
|
+
} else {
|
|
403
|
+
return JSON.stringify(flattenException(ex));
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
function flattenException(ex) {
|
|
407
|
+
const result = {};
|
|
408
|
+
let current = ex;
|
|
409
|
+
while (current !== null) {
|
|
410
|
+
Object.getOwnPropertyNames(current).forEach((propertyName) => {
|
|
411
|
+
if (result[propertyName])
|
|
412
|
+
return;
|
|
413
|
+
const value = current[propertyName];
|
|
414
|
+
if (value) {
|
|
415
|
+
result[propertyName] = String(value);
|
|
416
|
+
}
|
|
417
|
+
});
|
|
418
|
+
current = Object.getPrototypeOf(current);
|
|
419
|
+
}
|
|
420
|
+
return result;
|
|
421
|
+
}
|
|
422
|
+
var init_logging_error_handler = __esm({
|
|
423
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js"() {
|
|
424
|
+
"use strict";
|
|
425
|
+
init_esm();
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
|
|
429
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js
|
|
430
|
+
function setGlobalErrorHandler(handler) {
|
|
431
|
+
delegateHandler = handler;
|
|
432
|
+
}
|
|
433
|
+
function globalErrorHandler(ex) {
|
|
434
|
+
try {
|
|
435
|
+
delegateHandler(ex);
|
|
436
|
+
} catch {
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
var delegateHandler;
|
|
440
|
+
var init_global_error_handler = __esm({
|
|
441
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js"() {
|
|
442
|
+
"use strict";
|
|
443
|
+
init_logging_error_handler();
|
|
444
|
+
delegateHandler = loggingErrorHandler();
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/time.js
|
|
449
|
+
function millisToHrTime(epochMillis) {
|
|
450
|
+
const epochSeconds = epochMillis / 1e3;
|
|
451
|
+
const seconds = Math.trunc(epochSeconds);
|
|
452
|
+
const nanos = Math.round(epochMillis % 1e3 * MILLISECONDS_TO_NANOSECONDS);
|
|
453
|
+
return [seconds, nanos];
|
|
454
|
+
}
|
|
455
|
+
function getTimeOrigin() {
|
|
456
|
+
return otperformance.timeOrigin;
|
|
457
|
+
}
|
|
458
|
+
function hrTime(performanceNow) {
|
|
459
|
+
const timeOrigin = millisToHrTime(otperformance.timeOrigin);
|
|
460
|
+
const now = millisToHrTime(typeof performanceNow === "number" ? performanceNow : otperformance.now());
|
|
461
|
+
return addHrTimes(timeOrigin, now);
|
|
462
|
+
}
|
|
463
|
+
function timeInputToHrTime(time) {
|
|
464
|
+
if (isTimeInputHrTime(time)) {
|
|
465
|
+
return time;
|
|
466
|
+
} else if (typeof time === "number") {
|
|
467
|
+
if (time < otperformance.timeOrigin) {
|
|
468
|
+
return hrTime(time);
|
|
469
|
+
} else {
|
|
470
|
+
return millisToHrTime(time);
|
|
471
|
+
}
|
|
472
|
+
} else if (time instanceof Date) {
|
|
473
|
+
return millisToHrTime(time.getTime());
|
|
474
|
+
} else {
|
|
475
|
+
throw TypeError("Invalid input type");
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
function hrTimeDuration(startTime, endTime) {
|
|
479
|
+
let seconds = endTime[0] - startTime[0];
|
|
480
|
+
let nanos = endTime[1] - startTime[1];
|
|
481
|
+
if (nanos < 0) {
|
|
482
|
+
seconds -= 1;
|
|
483
|
+
nanos += SECOND_TO_NANOSECONDS;
|
|
484
|
+
}
|
|
485
|
+
return [seconds, nanos];
|
|
486
|
+
}
|
|
487
|
+
function hrTimeToTimeStamp(time) {
|
|
488
|
+
const precision = NANOSECOND_DIGITS;
|
|
489
|
+
const tmp = `${"0".repeat(precision)}${time[1]}Z`;
|
|
490
|
+
const nanoString = tmp.substring(tmp.length - precision - 1);
|
|
491
|
+
const date = new Date(time[0] * 1e3).toISOString();
|
|
492
|
+
return date.replace("000Z", nanoString);
|
|
493
|
+
}
|
|
494
|
+
function hrTimeToNanoseconds(time) {
|
|
495
|
+
return time[0] * SECOND_TO_NANOSECONDS + time[1];
|
|
496
|
+
}
|
|
497
|
+
function hrTimeToMilliseconds(time) {
|
|
498
|
+
return time[0] * 1e3 + time[1] / 1e6;
|
|
499
|
+
}
|
|
500
|
+
function hrTimeToMicroseconds(time) {
|
|
501
|
+
return time[0] * 1e6 + time[1] / 1e3;
|
|
502
|
+
}
|
|
503
|
+
function isTimeInputHrTime(value) {
|
|
504
|
+
return Array.isArray(value) && value.length === 2 && typeof value[0] === "number" && typeof value[1] === "number";
|
|
505
|
+
}
|
|
506
|
+
function isTimeInput(value) {
|
|
507
|
+
return isTimeInputHrTime(value) || typeof value === "number" || value instanceof Date;
|
|
508
|
+
}
|
|
509
|
+
function addHrTimes(time1, time2) {
|
|
510
|
+
const out = [time1[0] + time2[0], time1[1] + time2[1]];
|
|
511
|
+
if (out[1] >= SECOND_TO_NANOSECONDS) {
|
|
512
|
+
out[1] -= SECOND_TO_NANOSECONDS;
|
|
513
|
+
out[0] += 1;
|
|
514
|
+
}
|
|
515
|
+
return out;
|
|
516
|
+
}
|
|
517
|
+
var NANOSECOND_DIGITS, NANOSECOND_DIGITS_IN_MILLIS, MILLISECONDS_TO_NANOSECONDS, SECOND_TO_NANOSECONDS;
|
|
518
|
+
var init_time = __esm({
|
|
519
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/time.js"() {
|
|
520
|
+
"use strict";
|
|
521
|
+
init_platform();
|
|
522
|
+
NANOSECOND_DIGITS = 9;
|
|
523
|
+
NANOSECOND_DIGITS_IN_MILLIS = 6;
|
|
524
|
+
MILLISECONDS_TO_NANOSECONDS = Math.pow(10, NANOSECOND_DIGITS_IN_MILLIS);
|
|
525
|
+
SECOND_TO_NANOSECONDS = Math.pow(10, NANOSECOND_DIGITS);
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
|
|
529
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/timer-util.js
|
|
530
|
+
function unrefTimer(timer) {
|
|
531
|
+
if (typeof timer !== "number") {
|
|
532
|
+
timer.unref();
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
var init_timer_util = __esm({
|
|
536
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/common/timer-util.js"() {
|
|
537
|
+
"use strict";
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
|
|
541
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/ExportResult.js
|
|
542
|
+
var ExportResultCode;
|
|
543
|
+
var init_ExportResult = __esm({
|
|
544
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/ExportResult.js"() {
|
|
545
|
+
"use strict";
|
|
546
|
+
(function(ExportResultCode2) {
|
|
547
|
+
ExportResultCode2[ExportResultCode2["SUCCESS"] = 0] = "SUCCESS";
|
|
548
|
+
ExportResultCode2[ExportResultCode2["FAILED"] = 1] = "FAILED";
|
|
549
|
+
})(ExportResultCode || (ExportResultCode = {}));
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
|
|
553
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/propagation/composite.js
|
|
554
|
+
var CompositePropagator;
|
|
555
|
+
var init_composite = __esm({
|
|
556
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/propagation/composite.js"() {
|
|
557
|
+
"use strict";
|
|
558
|
+
init_esm();
|
|
559
|
+
CompositePropagator = class {
|
|
560
|
+
_propagators;
|
|
561
|
+
_fields;
|
|
562
|
+
/**
|
|
563
|
+
* Construct a composite propagator from a list of propagators.
|
|
564
|
+
*
|
|
565
|
+
* @param [config] Configuration object for composite propagator
|
|
566
|
+
*/
|
|
567
|
+
constructor(config = {}) {
|
|
568
|
+
this._propagators = config.propagators ?? [];
|
|
569
|
+
this._fields = Array.from(new Set(this._propagators.map((p) => typeof p.fields === "function" ? p.fields() : []).reduce((x, y) => x.concat(y), [])));
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Run each of the configured propagators with the given context and carrier.
|
|
573
|
+
* Propagators are run in the order they are configured, so if multiple
|
|
574
|
+
* propagators write the same carrier key, the propagator later in the list
|
|
575
|
+
* will "win".
|
|
576
|
+
*
|
|
577
|
+
* @param context Context to inject
|
|
578
|
+
* @param carrier Carrier into which context will be injected
|
|
579
|
+
*/
|
|
580
|
+
inject(context2, carrier, setter) {
|
|
581
|
+
for (const propagator of this._propagators) {
|
|
582
|
+
try {
|
|
583
|
+
propagator.inject(context2, carrier, setter);
|
|
584
|
+
} catch (err) {
|
|
585
|
+
diag.warn(`Failed to inject with ${propagator.constructor.name}. Err: ${err.message}`);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* Run each of the configured propagators with the given context and carrier.
|
|
591
|
+
* Propagators are run in the order they are configured, so if multiple
|
|
592
|
+
* propagators write the same context key, the propagator later in the list
|
|
593
|
+
* will "win".
|
|
594
|
+
*
|
|
595
|
+
* @param context Context to add values to
|
|
596
|
+
* @param carrier Carrier from which to extract context
|
|
597
|
+
*/
|
|
598
|
+
extract(context2, carrier, getter) {
|
|
599
|
+
return this._propagators.reduce((ctx, propagator) => {
|
|
600
|
+
try {
|
|
601
|
+
return propagator.extract(ctx, carrier, getter);
|
|
602
|
+
} catch (err) {
|
|
603
|
+
diag.warn(`Failed to extract with ${propagator.constructor.name}. Err: ${err.message}`);
|
|
604
|
+
}
|
|
605
|
+
return ctx;
|
|
606
|
+
}, context2);
|
|
607
|
+
}
|
|
608
|
+
fields() {
|
|
609
|
+
return this._fields.slice();
|
|
610
|
+
}
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
|
|
615
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/internal/validators.js
|
|
616
|
+
function validateKey(key) {
|
|
617
|
+
return VALID_KEY_REGEX.test(key);
|
|
618
|
+
}
|
|
619
|
+
function validateValue(value) {
|
|
620
|
+
return VALID_VALUE_BASE_REGEX.test(value) && !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value);
|
|
621
|
+
}
|
|
622
|
+
var VALID_KEY_CHAR_RANGE, VALID_KEY, VALID_VENDOR_KEY, VALID_KEY_REGEX, VALID_VALUE_BASE_REGEX, INVALID_VALUE_COMMA_EQUAL_REGEX;
|
|
623
|
+
var init_validators = __esm({
|
|
624
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/internal/validators.js"() {
|
|
625
|
+
"use strict";
|
|
626
|
+
VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]";
|
|
627
|
+
VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;
|
|
628
|
+
VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;
|
|
629
|
+
VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);
|
|
630
|
+
VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
|
|
631
|
+
INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
|
|
635
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js
|
|
636
|
+
var MAX_TRACE_STATE_ITEMS, MAX_TRACE_STATE_LEN, LIST_MEMBERS_SEPARATOR, LIST_MEMBER_KEY_VALUE_SPLITTER, TraceState;
|
|
637
|
+
var init_TraceState = __esm({
|
|
638
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js"() {
|
|
639
|
+
"use strict";
|
|
640
|
+
init_validators();
|
|
641
|
+
MAX_TRACE_STATE_ITEMS = 32;
|
|
642
|
+
MAX_TRACE_STATE_LEN = 512;
|
|
643
|
+
LIST_MEMBERS_SEPARATOR = ",";
|
|
644
|
+
LIST_MEMBER_KEY_VALUE_SPLITTER = "=";
|
|
645
|
+
TraceState = class _TraceState {
|
|
646
|
+
_internalState = /* @__PURE__ */ new Map();
|
|
647
|
+
constructor(rawTraceState) {
|
|
648
|
+
if (rawTraceState)
|
|
649
|
+
this._parse(rawTraceState);
|
|
650
|
+
}
|
|
651
|
+
set(key, value) {
|
|
652
|
+
const traceState = this._clone();
|
|
653
|
+
if (traceState._internalState.has(key)) {
|
|
654
|
+
traceState._internalState.delete(key);
|
|
655
|
+
}
|
|
656
|
+
traceState._internalState.set(key, value);
|
|
657
|
+
return traceState;
|
|
658
|
+
}
|
|
659
|
+
unset(key) {
|
|
660
|
+
const traceState = this._clone();
|
|
661
|
+
traceState._internalState.delete(key);
|
|
662
|
+
return traceState;
|
|
663
|
+
}
|
|
664
|
+
get(key) {
|
|
665
|
+
return this._internalState.get(key);
|
|
666
|
+
}
|
|
667
|
+
serialize() {
|
|
668
|
+
return this._keys().reduce((agg, key) => {
|
|
669
|
+
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));
|
|
670
|
+
return agg;
|
|
671
|
+
}, []).join(LIST_MEMBERS_SEPARATOR);
|
|
672
|
+
}
|
|
673
|
+
_parse(rawTraceState) {
|
|
674
|
+
if (rawTraceState.length > MAX_TRACE_STATE_LEN)
|
|
675
|
+
return;
|
|
676
|
+
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).reverse().reduce((agg, part) => {
|
|
677
|
+
const listMember = part.trim();
|
|
678
|
+
const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
|
|
679
|
+
if (i !== -1) {
|
|
680
|
+
const key = listMember.slice(0, i);
|
|
681
|
+
const value = listMember.slice(i + 1, part.length);
|
|
682
|
+
if (validateKey(key) && validateValue(value)) {
|
|
683
|
+
agg.set(key, value);
|
|
684
|
+
} else {
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
return agg;
|
|
688
|
+
}, /* @__PURE__ */ new Map());
|
|
689
|
+
if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {
|
|
690
|
+
this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS));
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
_keys() {
|
|
694
|
+
return Array.from(this._internalState.keys()).reverse();
|
|
695
|
+
}
|
|
696
|
+
_clone() {
|
|
697
|
+
const traceState = new _TraceState();
|
|
698
|
+
traceState._internalState = new Map(this._internalState);
|
|
699
|
+
return traceState;
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
|
|
705
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js
|
|
706
|
+
function parseTraceParent(traceParent) {
|
|
707
|
+
const match = TRACE_PARENT_REGEX.exec(traceParent);
|
|
708
|
+
if (!match)
|
|
709
|
+
return null;
|
|
710
|
+
if (match[1] === "00" && match[5])
|
|
711
|
+
return null;
|
|
712
|
+
return {
|
|
713
|
+
traceId: match[2],
|
|
714
|
+
spanId: match[3],
|
|
715
|
+
traceFlags: parseInt(match[4], 16)
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
var TRACE_PARENT_HEADER, TRACE_STATE_HEADER, VERSION2, VERSION_PART, TRACE_ID_PART, PARENT_ID_PART, FLAGS_PART, TRACE_PARENT_REGEX, W3CTraceContextPropagator;
|
|
719
|
+
var init_W3CTraceContextPropagator = __esm({
|
|
720
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"() {
|
|
721
|
+
"use strict";
|
|
722
|
+
init_esm();
|
|
723
|
+
init_suppress_tracing();
|
|
724
|
+
init_TraceState();
|
|
725
|
+
TRACE_PARENT_HEADER = "traceparent";
|
|
726
|
+
TRACE_STATE_HEADER = "tracestate";
|
|
727
|
+
VERSION2 = "00";
|
|
728
|
+
VERSION_PART = "(?!ff)[\\da-f]{2}";
|
|
729
|
+
TRACE_ID_PART = "(?![0]{32})[\\da-f]{32}";
|
|
730
|
+
PARENT_ID_PART = "(?![0]{16})[\\da-f]{16}";
|
|
731
|
+
FLAGS_PART = "[\\da-f]{2}";
|
|
732
|
+
TRACE_PARENT_REGEX = new RegExp(`^\\s?(${VERSION_PART})-(${TRACE_ID_PART})-(${PARENT_ID_PART})-(${FLAGS_PART})(-.*)?\\s?$`);
|
|
733
|
+
W3CTraceContextPropagator = class {
|
|
734
|
+
inject(context2, carrier, setter) {
|
|
735
|
+
const spanContext = trace.getSpanContext(context2);
|
|
736
|
+
if (!spanContext || isTracingSuppressed(context2) || !isSpanContextValid(spanContext))
|
|
737
|
+
return;
|
|
738
|
+
const traceParent = `${VERSION2}-${spanContext.traceId}-${spanContext.spanId}-0${Number(spanContext.traceFlags || TraceFlags.NONE).toString(16)}`;
|
|
739
|
+
setter.set(carrier, TRACE_PARENT_HEADER, traceParent);
|
|
740
|
+
if (spanContext.traceState) {
|
|
741
|
+
setter.set(carrier, TRACE_STATE_HEADER, spanContext.traceState.serialize());
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
extract(context2, carrier, getter) {
|
|
745
|
+
const traceParentHeader = getter.get(carrier, TRACE_PARENT_HEADER);
|
|
746
|
+
if (!traceParentHeader)
|
|
747
|
+
return context2;
|
|
748
|
+
const traceParent = Array.isArray(traceParentHeader) ? traceParentHeader[0] : traceParentHeader;
|
|
749
|
+
if (typeof traceParent !== "string")
|
|
750
|
+
return context2;
|
|
751
|
+
const spanContext = parseTraceParent(traceParent);
|
|
752
|
+
if (!spanContext)
|
|
753
|
+
return context2;
|
|
754
|
+
spanContext.isRemote = true;
|
|
755
|
+
const traceStateHeader = getter.get(carrier, TRACE_STATE_HEADER);
|
|
756
|
+
if (traceStateHeader) {
|
|
757
|
+
const state = Array.isArray(traceStateHeader) ? traceStateHeader.join(",") : traceStateHeader;
|
|
758
|
+
spanContext.traceState = new TraceState(typeof state === "string" ? state : void 0);
|
|
759
|
+
}
|
|
760
|
+
return trace.setSpanContext(context2, spanContext);
|
|
761
|
+
}
|
|
762
|
+
fields() {
|
|
763
|
+
return [TRACE_PARENT_HEADER, TRACE_STATE_HEADER];
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
|
|
769
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/trace/rpc-metadata.js
|
|
770
|
+
function setRPCMetadata(context2, meta) {
|
|
771
|
+
return context2.setValue(RPC_METADATA_KEY, meta);
|
|
772
|
+
}
|
|
773
|
+
function deleteRPCMetadata(context2) {
|
|
774
|
+
return context2.deleteValue(RPC_METADATA_KEY);
|
|
775
|
+
}
|
|
776
|
+
function getRPCMetadata(context2) {
|
|
777
|
+
return context2.getValue(RPC_METADATA_KEY);
|
|
778
|
+
}
|
|
779
|
+
var RPC_METADATA_KEY, RPCType;
|
|
780
|
+
var init_rpc_metadata = __esm({
|
|
781
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/trace/rpc-metadata.js"() {
|
|
782
|
+
"use strict";
|
|
783
|
+
init_esm();
|
|
784
|
+
RPC_METADATA_KEY = createContextKey("OpenTelemetry SDK Context Key RPC_METADATA");
|
|
785
|
+
(function(RPCType2) {
|
|
786
|
+
RPCType2["HTTP"] = "http";
|
|
787
|
+
})(RPCType || (RPCType = {}));
|
|
788
|
+
}
|
|
789
|
+
});
|
|
790
|
+
|
|
791
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js
|
|
792
|
+
function isPlainObject(value) {
|
|
793
|
+
if (!isObjectLike(value) || baseGetTag(value) !== objectTag) {
|
|
794
|
+
return false;
|
|
795
|
+
}
|
|
796
|
+
const proto = getPrototypeOf(value);
|
|
797
|
+
if (proto === null) {
|
|
798
|
+
return true;
|
|
799
|
+
}
|
|
800
|
+
const Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
801
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) === objectCtorString;
|
|
802
|
+
}
|
|
803
|
+
function isObjectLike(value) {
|
|
804
|
+
return value != null && typeof value == "object";
|
|
805
|
+
}
|
|
806
|
+
function baseGetTag(value) {
|
|
807
|
+
if (value == null) {
|
|
808
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
809
|
+
}
|
|
810
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
811
|
+
}
|
|
812
|
+
function getRawTag(value) {
|
|
813
|
+
const isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
814
|
+
let unmasked = false;
|
|
815
|
+
try {
|
|
816
|
+
value[symToStringTag] = void 0;
|
|
817
|
+
unmasked = true;
|
|
818
|
+
} catch {
|
|
819
|
+
}
|
|
820
|
+
const result = nativeObjectToString.call(value);
|
|
821
|
+
if (unmasked) {
|
|
822
|
+
if (isOwn) {
|
|
823
|
+
value[symToStringTag] = tag;
|
|
824
|
+
} else {
|
|
825
|
+
delete value[symToStringTag];
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
return result;
|
|
829
|
+
}
|
|
830
|
+
function objectToString(value) {
|
|
831
|
+
return nativeObjectToString.call(value);
|
|
832
|
+
}
|
|
833
|
+
var objectTag, nullTag, undefinedTag, funcProto, funcToString, objectCtorString, getPrototypeOf, objectProto, hasOwnProperty, symToStringTag, nativeObjectToString;
|
|
834
|
+
var init_lodash_merge = __esm({
|
|
835
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js"() {
|
|
836
|
+
"use strict";
|
|
837
|
+
objectTag = "[object Object]";
|
|
838
|
+
nullTag = "[object Null]";
|
|
839
|
+
undefinedTag = "[object Undefined]";
|
|
840
|
+
funcProto = Function.prototype;
|
|
841
|
+
funcToString = funcProto.toString;
|
|
842
|
+
objectCtorString = funcToString.call(Object);
|
|
843
|
+
getPrototypeOf = Object.getPrototypeOf;
|
|
844
|
+
objectProto = Object.prototype;
|
|
845
|
+
hasOwnProperty = objectProto.hasOwnProperty;
|
|
846
|
+
symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
847
|
+
nativeObjectToString = objectProto.toString;
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
|
|
851
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/merge.js
|
|
852
|
+
function merge(...args) {
|
|
853
|
+
let result = args.shift();
|
|
854
|
+
const objects = /* @__PURE__ */ new WeakMap();
|
|
855
|
+
while (args.length > 0) {
|
|
856
|
+
result = mergeTwoObjects(result, args.shift(), 0, objects);
|
|
857
|
+
}
|
|
858
|
+
return result;
|
|
859
|
+
}
|
|
860
|
+
function takeValue(value) {
|
|
861
|
+
if (isArray(value)) {
|
|
862
|
+
return value.slice();
|
|
863
|
+
}
|
|
864
|
+
return value;
|
|
865
|
+
}
|
|
866
|
+
function mergeTwoObjects(one, two, level = 0, objects) {
|
|
867
|
+
let result;
|
|
868
|
+
if (level > MAX_LEVEL) {
|
|
869
|
+
return void 0;
|
|
870
|
+
}
|
|
871
|
+
level++;
|
|
872
|
+
if (isPrimitive(one) || isPrimitive(two) || isFunction(two)) {
|
|
873
|
+
result = takeValue(two);
|
|
874
|
+
} else if (isArray(one)) {
|
|
875
|
+
result = one.slice();
|
|
876
|
+
if (isArray(two)) {
|
|
877
|
+
for (let i = 0, j = two.length; i < j; i++) {
|
|
878
|
+
result.push(takeValue(two[i]));
|
|
879
|
+
}
|
|
880
|
+
} else if (isObject(two)) {
|
|
881
|
+
const keys = Object.keys(two);
|
|
882
|
+
for (let i = 0, j = keys.length; i < j; i++) {
|
|
883
|
+
const key = keys[i];
|
|
884
|
+
result[key] = takeValue(two[key]);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
} else if (isObject(one)) {
|
|
888
|
+
if (isObject(two)) {
|
|
889
|
+
if (!shouldMerge(one, two)) {
|
|
890
|
+
return two;
|
|
891
|
+
}
|
|
892
|
+
result = Object.assign({}, one);
|
|
893
|
+
const keys = Object.keys(two);
|
|
894
|
+
for (let i = 0, j = keys.length; i < j; i++) {
|
|
895
|
+
const key = keys[i];
|
|
896
|
+
const twoValue = two[key];
|
|
897
|
+
if (isPrimitive(twoValue)) {
|
|
898
|
+
if (typeof twoValue === "undefined") {
|
|
899
|
+
delete result[key];
|
|
900
|
+
} else {
|
|
901
|
+
result[key] = twoValue;
|
|
902
|
+
}
|
|
903
|
+
} else {
|
|
904
|
+
const obj1 = result[key];
|
|
905
|
+
const obj2 = twoValue;
|
|
906
|
+
if (wasObjectReferenced(one, key, objects) || wasObjectReferenced(two, key, objects)) {
|
|
907
|
+
delete result[key];
|
|
908
|
+
} else {
|
|
909
|
+
if (isObject(obj1) && isObject(obj2)) {
|
|
910
|
+
const arr1 = objects.get(obj1) || [];
|
|
911
|
+
const arr2 = objects.get(obj2) || [];
|
|
912
|
+
arr1.push({ obj: one, key });
|
|
913
|
+
arr2.push({ obj: two, key });
|
|
914
|
+
objects.set(obj1, arr1);
|
|
915
|
+
objects.set(obj2, arr2);
|
|
916
|
+
}
|
|
917
|
+
result[key] = mergeTwoObjects(result[key], twoValue, level, objects);
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
} else {
|
|
922
|
+
result = two;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
return result;
|
|
926
|
+
}
|
|
927
|
+
function wasObjectReferenced(obj, key, objects) {
|
|
928
|
+
const arr = objects.get(obj[key]) || [];
|
|
929
|
+
for (let i = 0, j = arr.length; i < j; i++) {
|
|
930
|
+
const info = arr[i];
|
|
931
|
+
if (info.key === key && info.obj === obj) {
|
|
932
|
+
return true;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
return false;
|
|
936
|
+
}
|
|
937
|
+
function isArray(value) {
|
|
938
|
+
return Array.isArray(value);
|
|
939
|
+
}
|
|
940
|
+
function isFunction(value) {
|
|
941
|
+
return typeof value === "function";
|
|
942
|
+
}
|
|
943
|
+
function isObject(value) {
|
|
944
|
+
return !isPrimitive(value) && !isArray(value) && !isFunction(value) && typeof value === "object";
|
|
945
|
+
}
|
|
946
|
+
function isPrimitive(value) {
|
|
947
|
+
return typeof value === "string" || typeof value === "number" || typeof value === "boolean" || typeof value === "undefined" || value instanceof Date || value instanceof RegExp || value === null;
|
|
948
|
+
}
|
|
949
|
+
function shouldMerge(one, two) {
|
|
950
|
+
if (!isPlainObject(one) || !isPlainObject(two)) {
|
|
951
|
+
return false;
|
|
952
|
+
}
|
|
953
|
+
return true;
|
|
954
|
+
}
|
|
955
|
+
var MAX_LEVEL;
|
|
956
|
+
var init_merge = __esm({
|
|
957
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/merge.js"() {
|
|
958
|
+
"use strict";
|
|
959
|
+
init_lodash_merge();
|
|
960
|
+
MAX_LEVEL = 20;
|
|
961
|
+
}
|
|
962
|
+
});
|
|
963
|
+
|
|
964
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/timeout.js
|
|
965
|
+
function callWithTimeout(promise, timeout) {
|
|
966
|
+
let timeoutHandle;
|
|
967
|
+
const timeoutPromise = new Promise(function timeoutFunction(_resolve, reject) {
|
|
968
|
+
timeoutHandle = setTimeout(function timeoutHandler() {
|
|
969
|
+
reject(new TimeoutError("Operation timed out."));
|
|
970
|
+
}, timeout);
|
|
971
|
+
});
|
|
972
|
+
return Promise.race([promise, timeoutPromise]).then((result) => {
|
|
973
|
+
clearTimeout(timeoutHandle);
|
|
974
|
+
return result;
|
|
975
|
+
}, (reason) => {
|
|
976
|
+
clearTimeout(timeoutHandle);
|
|
977
|
+
throw reason;
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
var TimeoutError;
|
|
981
|
+
var init_timeout = __esm({
|
|
982
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/timeout.js"() {
|
|
983
|
+
"use strict";
|
|
984
|
+
TimeoutError = class _TimeoutError extends Error {
|
|
985
|
+
constructor(message) {
|
|
986
|
+
super(message);
|
|
987
|
+
Object.setPrototypeOf(this, _TimeoutError.prototype);
|
|
988
|
+
}
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
});
|
|
992
|
+
|
|
993
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/url.js
|
|
994
|
+
function urlMatches(url, urlToMatch) {
|
|
995
|
+
if (typeof urlToMatch === "string") {
|
|
996
|
+
return url === urlToMatch;
|
|
997
|
+
} else {
|
|
998
|
+
return !!url.match(urlToMatch);
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
function isUrlIgnored(url, ignoredUrls) {
|
|
1002
|
+
if (!ignoredUrls) {
|
|
1003
|
+
return false;
|
|
1004
|
+
}
|
|
1005
|
+
for (const ignoreUrl of ignoredUrls) {
|
|
1006
|
+
if (urlMatches(url, ignoreUrl)) {
|
|
1007
|
+
return true;
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
return false;
|
|
1011
|
+
}
|
|
1012
|
+
var init_url = __esm({
|
|
1013
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/url.js"() {
|
|
1014
|
+
"use strict";
|
|
1015
|
+
}
|
|
1016
|
+
});
|
|
1017
|
+
|
|
1018
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/promise.js
|
|
1019
|
+
var Deferred;
|
|
1020
|
+
var init_promise = __esm({
|
|
1021
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/promise.js"() {
|
|
1022
|
+
"use strict";
|
|
1023
|
+
Deferred = class {
|
|
1024
|
+
_promise;
|
|
1025
|
+
_resolve;
|
|
1026
|
+
_reject;
|
|
1027
|
+
constructor() {
|
|
1028
|
+
this._promise = new Promise((resolve, reject) => {
|
|
1029
|
+
this._resolve = resolve;
|
|
1030
|
+
this._reject = reject;
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
get promise() {
|
|
1034
|
+
return this._promise;
|
|
1035
|
+
}
|
|
1036
|
+
resolve(val) {
|
|
1037
|
+
this._resolve(val);
|
|
1038
|
+
}
|
|
1039
|
+
reject(err) {
|
|
1040
|
+
this._reject(err);
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
});
|
|
1045
|
+
|
|
1046
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/callback.js
|
|
1047
|
+
var BindOnceFuture;
|
|
1048
|
+
var init_callback = __esm({
|
|
1049
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/callback.js"() {
|
|
1050
|
+
"use strict";
|
|
1051
|
+
init_promise();
|
|
1052
|
+
BindOnceFuture = class {
|
|
1053
|
+
_isCalled = false;
|
|
1054
|
+
_deferred = new Deferred();
|
|
1055
|
+
_callback;
|
|
1056
|
+
_that;
|
|
1057
|
+
constructor(callback, that) {
|
|
1058
|
+
this._callback = callback;
|
|
1059
|
+
this._that = that;
|
|
1060
|
+
}
|
|
1061
|
+
get isCalled() {
|
|
1062
|
+
return this._isCalled;
|
|
1063
|
+
}
|
|
1064
|
+
get promise() {
|
|
1065
|
+
return this._deferred.promise;
|
|
1066
|
+
}
|
|
1067
|
+
call(...args) {
|
|
1068
|
+
if (!this._isCalled) {
|
|
1069
|
+
this._isCalled = true;
|
|
1070
|
+
try {
|
|
1071
|
+
Promise.resolve(this._callback.call(this._that, ...args)).then((val) => this._deferred.resolve(val), (err) => this._deferred.reject(err));
|
|
1072
|
+
} catch (err) {
|
|
1073
|
+
this._deferred.reject(err);
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
return this._deferred.promise;
|
|
1077
|
+
}
|
|
1078
|
+
};
|
|
1079
|
+
}
|
|
1080
|
+
});
|
|
1081
|
+
|
|
1082
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/configuration.js
|
|
1083
|
+
function diagLogLevelFromString(value) {
|
|
1084
|
+
if (value == null) {
|
|
1085
|
+
return void 0;
|
|
1086
|
+
}
|
|
1087
|
+
const resolvedLogLevel = logLevelMap[value.toUpperCase()];
|
|
1088
|
+
if (resolvedLogLevel == null) {
|
|
1089
|
+
diag.warn(`Unknown log level "${value}", expected one of ${Object.keys(logLevelMap)}, using default`);
|
|
1090
|
+
return DiagLogLevel.INFO;
|
|
1091
|
+
}
|
|
1092
|
+
return resolvedLogLevel;
|
|
1093
|
+
}
|
|
1094
|
+
var logLevelMap;
|
|
1095
|
+
var init_configuration = __esm({
|
|
1096
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/utils/configuration.js"() {
|
|
1097
|
+
"use strict";
|
|
1098
|
+
init_esm();
|
|
1099
|
+
logLevelMap = {
|
|
1100
|
+
ALL: DiagLogLevel.ALL,
|
|
1101
|
+
VERBOSE: DiagLogLevel.VERBOSE,
|
|
1102
|
+
DEBUG: DiagLogLevel.DEBUG,
|
|
1103
|
+
INFO: DiagLogLevel.INFO,
|
|
1104
|
+
WARN: DiagLogLevel.WARN,
|
|
1105
|
+
ERROR: DiagLogLevel.ERROR,
|
|
1106
|
+
NONE: DiagLogLevel.NONE
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
|
|
1111
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/internal/exporter.js
|
|
1112
|
+
function _export(exporter, arg) {
|
|
1113
|
+
return new Promise((resolve) => {
|
|
1114
|
+
context.with(suppressTracing(context.active()), () => {
|
|
1115
|
+
exporter.export(arg, resolve);
|
|
1116
|
+
});
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
var init_exporter = __esm({
|
|
1120
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/internal/exporter.js"() {
|
|
1121
|
+
"use strict";
|
|
1122
|
+
init_esm();
|
|
1123
|
+
init_suppress_tracing();
|
|
1124
|
+
}
|
|
1125
|
+
});
|
|
1126
|
+
|
|
1127
|
+
// ../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/index.js
|
|
1128
|
+
var esm_exports = {};
|
|
1129
|
+
__export(esm_exports, {
|
|
1130
|
+
AnchoredClock: () => AnchoredClock,
|
|
1131
|
+
BindOnceFuture: () => BindOnceFuture,
|
|
1132
|
+
CompositePropagator: () => CompositePropagator,
|
|
1133
|
+
ExportResultCode: () => ExportResultCode,
|
|
1134
|
+
RPCType: () => RPCType,
|
|
1135
|
+
SDK_INFO: () => SDK_INFO,
|
|
1136
|
+
TRACE_PARENT_HEADER: () => TRACE_PARENT_HEADER,
|
|
1137
|
+
TRACE_STATE_HEADER: () => TRACE_STATE_HEADER,
|
|
1138
|
+
TimeoutError: () => TimeoutError,
|
|
1139
|
+
TraceState: () => TraceState,
|
|
1140
|
+
W3CBaggagePropagator: () => W3CBaggagePropagator,
|
|
1141
|
+
W3CTraceContextPropagator: () => W3CTraceContextPropagator,
|
|
1142
|
+
_globalThis: () => _globalThis,
|
|
1143
|
+
addHrTimes: () => addHrTimes,
|
|
1144
|
+
callWithTimeout: () => callWithTimeout,
|
|
1145
|
+
deleteRPCMetadata: () => deleteRPCMetadata,
|
|
1146
|
+
diagLogLevelFromString: () => diagLogLevelFromString,
|
|
1147
|
+
getBooleanFromEnv: () => getBooleanFromEnv,
|
|
1148
|
+
getNumberFromEnv: () => getNumberFromEnv,
|
|
1149
|
+
getRPCMetadata: () => getRPCMetadata,
|
|
1150
|
+
getStringFromEnv: () => getStringFromEnv,
|
|
1151
|
+
getStringListFromEnv: () => getStringListFromEnv,
|
|
1152
|
+
getTimeOrigin: () => getTimeOrigin,
|
|
1153
|
+
globalErrorHandler: () => globalErrorHandler,
|
|
1154
|
+
hrTime: () => hrTime,
|
|
1155
|
+
hrTimeDuration: () => hrTimeDuration,
|
|
1156
|
+
hrTimeToMicroseconds: () => hrTimeToMicroseconds,
|
|
1157
|
+
hrTimeToMilliseconds: () => hrTimeToMilliseconds,
|
|
1158
|
+
hrTimeToNanoseconds: () => hrTimeToNanoseconds,
|
|
1159
|
+
hrTimeToTimeStamp: () => hrTimeToTimeStamp,
|
|
1160
|
+
internal: () => internal,
|
|
1161
|
+
isAttributeValue: () => isAttributeValue,
|
|
1162
|
+
isTimeInput: () => isTimeInput,
|
|
1163
|
+
isTimeInputHrTime: () => isTimeInputHrTime,
|
|
1164
|
+
isTracingSuppressed: () => isTracingSuppressed,
|
|
1165
|
+
isUrlIgnored: () => isUrlIgnored,
|
|
1166
|
+
loggingErrorHandler: () => loggingErrorHandler,
|
|
1167
|
+
merge: () => merge,
|
|
1168
|
+
millisToHrTime: () => millisToHrTime,
|
|
1169
|
+
otperformance: () => otperformance,
|
|
1170
|
+
parseKeyPairsIntoRecord: () => parseKeyPairsIntoRecord,
|
|
1171
|
+
parseTraceParent: () => parseTraceParent,
|
|
1172
|
+
sanitizeAttributes: () => sanitizeAttributes,
|
|
1173
|
+
setGlobalErrorHandler: () => setGlobalErrorHandler,
|
|
1174
|
+
setRPCMetadata: () => setRPCMetadata,
|
|
1175
|
+
suppressTracing: () => suppressTracing,
|
|
1176
|
+
timeInputToHrTime: () => timeInputToHrTime,
|
|
1177
|
+
unrefTimer: () => unrefTimer,
|
|
1178
|
+
unsuppressTracing: () => unsuppressTracing,
|
|
1179
|
+
urlMatches: () => urlMatches
|
|
1180
|
+
});
|
|
1181
|
+
var internal;
|
|
1182
|
+
var init_esm3 = __esm({
|
|
1183
|
+
"../../node_modules/.bun/@opentelemetry+core@2.5.1+460773ef8ff1e07c/node_modules/@opentelemetry/core/build/esm/index.js"() {
|
|
1184
|
+
"use strict";
|
|
1185
|
+
init_W3CBaggagePropagator();
|
|
1186
|
+
init_anchored_clock();
|
|
1187
|
+
init_attributes();
|
|
1188
|
+
init_global_error_handler();
|
|
1189
|
+
init_logging_error_handler();
|
|
1190
|
+
init_time();
|
|
1191
|
+
init_timer_util();
|
|
1192
|
+
init_ExportResult();
|
|
1193
|
+
init_utils();
|
|
1194
|
+
init_platform();
|
|
1195
|
+
init_composite();
|
|
1196
|
+
init_W3CTraceContextPropagator();
|
|
1197
|
+
init_rpc_metadata();
|
|
1198
|
+
init_suppress_tracing();
|
|
1199
|
+
init_TraceState();
|
|
1200
|
+
init_merge();
|
|
1201
|
+
init_timeout();
|
|
1202
|
+
init_url();
|
|
1203
|
+
init_callback();
|
|
1204
|
+
init_configuration();
|
|
1205
|
+
init_exporter();
|
|
1206
|
+
internal = {
|
|
1207
|
+
_export
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
});
|
|
1211
|
+
|
|
1212
|
+
export {
|
|
1213
|
+
suppressTracing,
|
|
1214
|
+
isTracingSuppressed,
|
|
1215
|
+
parseKeyPairsIntoRecord,
|
|
1216
|
+
sanitizeAttributes,
|
|
1217
|
+
isAttributeValue,
|
|
1218
|
+
globalErrorHandler,
|
|
1219
|
+
getNumberFromEnv,
|
|
1220
|
+
getStringFromEnv,
|
|
1221
|
+
SDK_INFO,
|
|
1222
|
+
otperformance,
|
|
1223
|
+
millisToHrTime,
|
|
1224
|
+
hrTime,
|
|
1225
|
+
hrTimeDuration,
|
|
1226
|
+
hrTimeToNanoseconds,
|
|
1227
|
+
hrTimeToMicroseconds,
|
|
1228
|
+
isTimeInputHrTime,
|
|
1229
|
+
isTimeInput,
|
|
1230
|
+
addHrTimes,
|
|
1231
|
+
ExportResultCode,
|
|
1232
|
+
merge,
|
|
1233
|
+
BindOnceFuture,
|
|
1234
|
+
internal,
|
|
1235
|
+
esm_exports,
|
|
1236
|
+
init_esm3 as init_esm
|
|
1237
|
+
};
|
|
1238
|
+
//# sourceMappingURL=chunk-SR4I5KET.js.map
|