braintrust 0.1.1 → 0.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/dev/dist/index.d.mts +26 -24
- package/dev/dist/index.d.ts +26 -24
- package/dev/dist/index.js +17 -10
- package/dev/dist/index.mjs +17 -10
- package/dist/browser.d.mts +77 -75
- package/dist/browser.d.ts +77 -75
- package/dist/{chunk-WEZHHYVU.js → chunk-CDBUTZMH.js} +94 -94
- package/dist/chunk-NB5AEJPK.mjs +19 -0
- package/dist/{chunk-K3GLD6I7.js → chunk-VKR7HDRS.js} +4 -4
- package/dist/{chunk-64O3VXT4.mjs → chunk-WKBXJQ57.mjs} +94 -94
- package/dist/cli.js +74 -67
- package/dist/getMachineId-bsd-7YM2UMB4.js +37 -0
- package/dist/{getMachineId-bsd-232NBLGZ.mjs → getMachineId-bsd-L7QQYES7.mjs} +4 -4
- package/dist/getMachineId-darwin-QV3NVG7H.js +37 -0
- package/dist/{getMachineId-darwin-C7F2HXMI.mjs → getMachineId-darwin-YXDFFCXM.mjs} +4 -4
- package/dist/getMachineId-linux-HKJ2YLJC.js +29 -0
- package/dist/{getMachineId-linux-VLB6DDHP.mjs → getMachineId-linux-LWEEVKPU.mjs} +3 -3
- package/dist/getMachineId-unsupported-EGJSIDYQ.mjs +20 -0
- package/dist/getMachineId-unsupported-TX34Q66M.js +20 -0
- package/dist/{getMachineId-win-4OSXYWMY.js → getMachineId-win-M5YW2KGK.js} +9 -9
- package/dist/{getMachineId-win-U7W7AAJX.mjs → getMachineId-win-UDA4B6X2.mjs} +4 -4
- package/dist/index.d.mts +164 -97
- package/dist/index.d.ts +164 -97
- package/dist/index.js +533 -443
- package/dist/index.mjs +360 -270
- package/package.json +3 -3
- package/dist/chunk-C527YOOG.mjs +0 -19
- package/dist/getMachineId-bsd-BCB626OV.js +0 -37
- package/dist/getMachineId-darwin-TV4MHNE6.js +0 -37
- package/dist/getMachineId-linux-RTVYWQL7.js +0 -29
- package/dist/getMachineId-unsupported-7RHYOLDR.js +0 -20
- package/dist/getMachineId-unsupported-IF5IGKUD.mjs +0 -20
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31;
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkCDBUTZMHjs = require('./chunk-CDBUTZMH.js');
|
|
20
20
|
|
|
21
|
-
//
|
|
21
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js
|
|
22
22
|
function suppressTracing(context2) {
|
|
23
23
|
return context2.setValue(SUPPRESS_TRACING_KEY, true);
|
|
24
24
|
}
|
|
@@ -26,65 +26,15 @@ function isTracingSuppressed(context2) {
|
|
|
26
26
|
return context2.getValue(SUPPRESS_TRACING_KEY) === true;
|
|
27
27
|
}
|
|
28
28
|
var SUPPRESS_TRACING_KEY;
|
|
29
|
-
var init_suppress_tracing =
|
|
30
|
-
"
|
|
29
|
+
var init_suppress_tracing = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
30
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"() {
|
|
31
31
|
"use strict";
|
|
32
|
-
|
|
33
|
-
SUPPRESS_TRACING_KEY =
|
|
32
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
33
|
+
SUPPRESS_TRACING_KEY = _chunkCDBUTZMHjs.createContextKey.call(void 0, "OpenTelemetry SDK Context Key SUPPRESS_TRACING");
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
//
|
|
38
|
-
var BAGGAGE_KEY_PAIR_SEPARATOR, BAGGAGE_PROPERTIES_SEPARATOR, BAGGAGE_ITEMS_SEPARATOR;
|
|
39
|
-
var init_constants = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
40
|
-
"../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/baggage/constants.js"() {
|
|
41
|
-
"use strict";
|
|
42
|
-
BAGGAGE_KEY_PAIR_SEPARATOR = "=";
|
|
43
|
-
BAGGAGE_PROPERTIES_SEPARATOR = ";";
|
|
44
|
-
BAGGAGE_ITEMS_SEPARATOR = ",";
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
// ../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/baggage/utils.js
|
|
49
|
-
function parsePairKeyValue(entry) {
|
|
50
|
-
const valueProps = entry.split(BAGGAGE_PROPERTIES_SEPARATOR);
|
|
51
|
-
if (valueProps.length <= 0)
|
|
52
|
-
return;
|
|
53
|
-
const keyPairPart = valueProps.shift();
|
|
54
|
-
if (!keyPairPart)
|
|
55
|
-
return;
|
|
56
|
-
const separatorIndex = keyPairPart.indexOf(BAGGAGE_KEY_PAIR_SEPARATOR);
|
|
57
|
-
if (separatorIndex <= 0)
|
|
58
|
-
return;
|
|
59
|
-
const key = decodeURIComponent(keyPairPart.substring(0, separatorIndex).trim());
|
|
60
|
-
const value = decodeURIComponent(keyPairPart.substring(separatorIndex + 1).trim());
|
|
61
|
-
let metadata;
|
|
62
|
-
if (valueProps.length > 0) {
|
|
63
|
-
metadata = _chunkWEZHHYVUjs.baggageEntryMetadataFromString.call(void 0, valueProps.join(BAGGAGE_PROPERTIES_SEPARATOR));
|
|
64
|
-
}
|
|
65
|
-
return { key, value, metadata };
|
|
66
|
-
}
|
|
67
|
-
function parseKeyPairsIntoRecord(value) {
|
|
68
|
-
const result = {};
|
|
69
|
-
if (typeof value === "string" && value.length > 0) {
|
|
70
|
-
value.split(BAGGAGE_ITEMS_SEPARATOR).forEach((entry) => {
|
|
71
|
-
const keyPair = parsePairKeyValue(entry);
|
|
72
|
-
if (keyPair !== void 0 && keyPair.value.length > 0) {
|
|
73
|
-
result[keyPair.key] = keyPair.value;
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return result;
|
|
78
|
-
}
|
|
79
|
-
var init_utils = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
80
|
-
"../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/baggage/utils.js"() {
|
|
81
|
-
"use strict";
|
|
82
|
-
_chunkWEZHHYVUjs.init_esm.call(void 0, );
|
|
83
|
-
init_constants();
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
// ../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/common/attributes.js
|
|
37
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/common/attributes.js
|
|
88
38
|
function sanitizeAttributes(attributes) {
|
|
89
39
|
const out = {};
|
|
90
40
|
if (typeof attributes !== "object" || attributes == null) {
|
|
@@ -92,11 +42,11 @@ function sanitizeAttributes(attributes) {
|
|
|
92
42
|
}
|
|
93
43
|
for (const [key, val] of Object.entries(attributes)) {
|
|
94
44
|
if (!isAttributeKey(key)) {
|
|
95
|
-
|
|
45
|
+
_chunkCDBUTZMHjs.diag.warn(`Invalid attribute key: ${key}`);
|
|
96
46
|
continue;
|
|
97
47
|
}
|
|
98
48
|
if (!isAttributeValue(val)) {
|
|
99
|
-
|
|
49
|
+
_chunkCDBUTZMHjs.diag.warn(`Invalid attribute value set for key: ${key}`);
|
|
100
50
|
continue;
|
|
101
51
|
}
|
|
102
52
|
if (Array.isArray(val)) {
|
|
@@ -147,17 +97,17 @@ function isValidPrimitiveAttributeValue(val) {
|
|
|
147
97
|
}
|
|
148
98
|
return false;
|
|
149
99
|
}
|
|
150
|
-
var init_attributes =
|
|
151
|
-
"
|
|
100
|
+
var init_attributes = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
101
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/common/attributes.js"() {
|
|
152
102
|
"use strict";
|
|
153
|
-
|
|
103
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
154
104
|
}
|
|
155
105
|
});
|
|
156
106
|
|
|
157
|
-
//
|
|
107
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js
|
|
158
108
|
function loggingErrorHandler() {
|
|
159
109
|
return (ex) => {
|
|
160
|
-
|
|
110
|
+
_chunkCDBUTZMHjs.diag.error(stringifyException(ex));
|
|
161
111
|
};
|
|
162
112
|
}
|
|
163
113
|
function stringifyException(ex) {
|
|
@@ -183,14 +133,14 @@ function flattenException(ex) {
|
|
|
183
133
|
}
|
|
184
134
|
return result;
|
|
185
135
|
}
|
|
186
|
-
var init_logging_error_handler =
|
|
187
|
-
"
|
|
136
|
+
var init_logging_error_handler = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
137
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js"() {
|
|
188
138
|
"use strict";
|
|
189
|
-
|
|
139
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
190
140
|
}
|
|
191
141
|
});
|
|
192
142
|
|
|
193
|
-
//
|
|
143
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js
|
|
194
144
|
function globalErrorHandler(ex) {
|
|
195
145
|
try {
|
|
196
146
|
delegateHandler(ex);
|
|
@@ -198,15 +148,15 @@ function globalErrorHandler(ex) {
|
|
|
198
148
|
}
|
|
199
149
|
}
|
|
200
150
|
var delegateHandler;
|
|
201
|
-
var init_global_error_handler =
|
|
202
|
-
"
|
|
151
|
+
var init_global_error_handler = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
152
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js"() {
|
|
203
153
|
"use strict";
|
|
204
154
|
init_logging_error_handler();
|
|
205
155
|
delegateHandler = loggingErrorHandler();
|
|
206
156
|
}
|
|
207
157
|
});
|
|
208
158
|
|
|
209
|
-
//
|
|
159
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/platform/node/environment.js
|
|
210
160
|
var _util = require('util');
|
|
211
161
|
function getNumberFromEnv(key) {
|
|
212
162
|
const raw = process.env[key];
|
|
@@ -215,7 +165,7 @@ function getNumberFromEnv(key) {
|
|
|
215
165
|
}
|
|
216
166
|
const value = Number(raw);
|
|
217
167
|
if (isNaN(value)) {
|
|
218
|
-
|
|
168
|
+
_chunkCDBUTZMHjs.diag.warn(`Unknown value ${_util.inspect.call(void 0, raw)} for ${key}, expected a number, using defaults`);
|
|
219
169
|
return void 0;
|
|
220
170
|
}
|
|
221
171
|
return value;
|
|
@@ -227,66 +177,66 @@ function getStringFromEnv(key) {
|
|
|
227
177
|
}
|
|
228
178
|
return raw;
|
|
229
179
|
}
|
|
230
|
-
var init_environment =
|
|
231
|
-
"
|
|
180
|
+
var init_environment = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
181
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/platform/node/environment.js"() {
|
|
232
182
|
"use strict";
|
|
233
|
-
|
|
183
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
234
184
|
}
|
|
235
185
|
});
|
|
236
186
|
|
|
237
|
-
//
|
|
187
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/platform/node/performance.js
|
|
238
188
|
var _perf_hooks = require('perf_hooks');
|
|
239
189
|
var otperformance;
|
|
240
|
-
var init_performance =
|
|
241
|
-
"
|
|
190
|
+
var init_performance = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
191
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/platform/node/performance.js"() {
|
|
242
192
|
"use strict";
|
|
243
193
|
otperformance = _perf_hooks.performance;
|
|
244
194
|
}
|
|
245
195
|
});
|
|
246
196
|
|
|
247
|
-
//
|
|
197
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/version.js
|
|
248
198
|
var VERSION;
|
|
249
|
-
var init_version =
|
|
250
|
-
"
|
|
199
|
+
var init_version = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
200
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/version.js"() {
|
|
251
201
|
"use strict";
|
|
252
202
|
VERSION = "2.0.1";
|
|
253
203
|
}
|
|
254
204
|
});
|
|
255
205
|
|
|
256
|
-
//
|
|
257
|
-
var init_SemanticAttributes =
|
|
258
|
-
"
|
|
206
|
+
// ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js
|
|
207
|
+
var init_SemanticAttributes = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
208
|
+
"../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js"() {
|
|
259
209
|
"use strict";
|
|
260
210
|
}
|
|
261
211
|
});
|
|
262
212
|
|
|
263
|
-
//
|
|
264
|
-
var init_trace =
|
|
265
|
-
"
|
|
213
|
+
// ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js
|
|
214
|
+
var init_trace = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
215
|
+
"../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js"() {
|
|
266
216
|
"use strict";
|
|
267
217
|
init_SemanticAttributes();
|
|
268
218
|
}
|
|
269
219
|
});
|
|
270
220
|
|
|
271
|
-
//
|
|
272
|
-
var init_SemanticResourceAttributes =
|
|
273
|
-
"
|
|
221
|
+
// ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js
|
|
222
|
+
var init_SemanticResourceAttributes = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
223
|
+
"../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js"() {
|
|
274
224
|
"use strict";
|
|
275
225
|
}
|
|
276
226
|
});
|
|
277
227
|
|
|
278
|
-
//
|
|
279
|
-
var init_resource =
|
|
280
|
-
"
|
|
228
|
+
// ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js
|
|
229
|
+
var init_resource = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
230
|
+
"../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js"() {
|
|
281
231
|
"use strict";
|
|
282
232
|
init_SemanticResourceAttributes();
|
|
283
233
|
}
|
|
284
234
|
});
|
|
285
235
|
|
|
286
|
-
//
|
|
236
|
+
// ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js
|
|
287
237
|
var ATTR_EXCEPTION_MESSAGE, ATTR_EXCEPTION_STACKTRACE, ATTR_EXCEPTION_TYPE, ATTR_SERVICE_NAME, ATTR_TELEMETRY_SDK_LANGUAGE, TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS, ATTR_TELEMETRY_SDK_NAME, ATTR_TELEMETRY_SDK_VERSION;
|
|
288
|
-
var init_stable_attributes =
|
|
289
|
-
"
|
|
238
|
+
var init_stable_attributes = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
239
|
+
"../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"() {
|
|
290
240
|
"use strict";
|
|
291
241
|
ATTR_EXCEPTION_MESSAGE = "exception.message";
|
|
292
242
|
ATTR_EXCEPTION_STACKTRACE = "exception.stacktrace";
|
|
@@ -299,16 +249,16 @@ var init_stable_attributes = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
299
249
|
}
|
|
300
250
|
});
|
|
301
251
|
|
|
302
|
-
//
|
|
303
|
-
var init_stable_metrics =
|
|
304
|
-
"
|
|
252
|
+
// ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js
|
|
253
|
+
var init_stable_metrics = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
254
|
+
"../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js"() {
|
|
305
255
|
"use strict";
|
|
306
256
|
}
|
|
307
257
|
});
|
|
308
258
|
|
|
309
|
-
//
|
|
310
|
-
var init_esm2 =
|
|
311
|
-
"
|
|
259
|
+
// ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js
|
|
260
|
+
var init_esm2 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
261
|
+
"../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.32.0/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js"() {
|
|
312
262
|
"use strict";
|
|
313
263
|
init_trace();
|
|
314
264
|
init_resource();
|
|
@@ -317,19 +267,19 @@ var init_esm2 = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
317
267
|
}
|
|
318
268
|
});
|
|
319
269
|
|
|
320
|
-
//
|
|
270
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/semconv.js
|
|
321
271
|
var ATTR_PROCESS_RUNTIME_NAME;
|
|
322
|
-
var init_semconv =
|
|
323
|
-
"
|
|
272
|
+
var init_semconv = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
273
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/semconv.js"() {
|
|
324
274
|
"use strict";
|
|
325
275
|
ATTR_PROCESS_RUNTIME_NAME = "process.runtime.name";
|
|
326
276
|
}
|
|
327
277
|
});
|
|
328
278
|
|
|
329
|
-
//
|
|
279
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/platform/node/sdk-info.js
|
|
330
280
|
var SDK_INFO;
|
|
331
|
-
var init_sdk_info =
|
|
332
|
-
"
|
|
281
|
+
var init_sdk_info = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
282
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/platform/node/sdk-info.js"() {
|
|
333
283
|
"use strict";
|
|
334
284
|
init_version();
|
|
335
285
|
init_esm2();
|
|
@@ -343,19 +293,19 @@ var init_sdk_info = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
343
293
|
}
|
|
344
294
|
});
|
|
345
295
|
|
|
346
|
-
//
|
|
296
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/platform/node/timer-util.js
|
|
347
297
|
function unrefTimer(timer) {
|
|
348
298
|
timer.unref();
|
|
349
299
|
}
|
|
350
|
-
var init_timer_util =
|
|
351
|
-
"
|
|
300
|
+
var init_timer_util = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
301
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/platform/node/timer-util.js"() {
|
|
352
302
|
"use strict";
|
|
353
303
|
}
|
|
354
304
|
});
|
|
355
305
|
|
|
356
|
-
//
|
|
357
|
-
var init_node =
|
|
358
|
-
"
|
|
306
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/platform/node/index.js
|
|
307
|
+
var init_node = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
308
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/platform/node/index.js"() {
|
|
359
309
|
"use strict";
|
|
360
310
|
init_environment();
|
|
361
311
|
init_performance();
|
|
@@ -364,15 +314,15 @@ var init_node = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
364
314
|
}
|
|
365
315
|
});
|
|
366
316
|
|
|
367
|
-
//
|
|
368
|
-
var init_platform =
|
|
369
|
-
"
|
|
317
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/platform/index.js
|
|
318
|
+
var init_platform = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
319
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/platform/index.js"() {
|
|
370
320
|
"use strict";
|
|
371
321
|
init_node();
|
|
372
322
|
}
|
|
373
323
|
});
|
|
374
324
|
|
|
375
|
-
//
|
|
325
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/common/time.js
|
|
376
326
|
function millisToHrTime(epochMillis) {
|
|
377
327
|
const epochSeconds = epochMillis / 1e3;
|
|
378
328
|
const seconds = Math.trunc(epochSeconds);
|
|
@@ -401,9 +351,6 @@ function hrTimeDuration(startTime, endTime) {
|
|
|
401
351
|
}
|
|
402
352
|
return [seconds, nanos];
|
|
403
353
|
}
|
|
404
|
-
function hrTimeToNanoseconds(time) {
|
|
405
|
-
return time[0] * SECOND_TO_NANOSECONDS + time[1];
|
|
406
|
-
}
|
|
407
354
|
function hrTimeToMicroseconds(time) {
|
|
408
355
|
return time[0] * 1e6 + time[1] / 1e3;
|
|
409
356
|
}
|
|
@@ -422,8 +369,8 @@ function addHrTimes(time1, time2) {
|
|
|
422
369
|
return out;
|
|
423
370
|
}
|
|
424
371
|
var NANOSECOND_DIGITS, NANOSECOND_DIGITS_IN_MILLIS, MILLISECONDS_TO_NANOSECONDS, SECOND_TO_NANOSECONDS;
|
|
425
|
-
var init_time =
|
|
426
|
-
"
|
|
372
|
+
var init_time = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
373
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/common/time.js"() {
|
|
427
374
|
"use strict";
|
|
428
375
|
init_platform();
|
|
429
376
|
NANOSECOND_DIGITS = 9;
|
|
@@ -433,19 +380,19 @@ var init_time = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
433
380
|
}
|
|
434
381
|
});
|
|
435
382
|
|
|
436
|
-
//
|
|
383
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/ExportResult.js
|
|
437
384
|
var ExportResultCode;
|
|
438
|
-
var init_ExportResult =
|
|
439
|
-
"
|
|
385
|
+
var init_ExportResult = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
386
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/ExportResult.js"() {
|
|
440
387
|
"use strict";
|
|
441
|
-
(function(
|
|
442
|
-
|
|
443
|
-
|
|
388
|
+
(function(ExportResultCode3) {
|
|
389
|
+
ExportResultCode3[ExportResultCode3["SUCCESS"] = 0] = "SUCCESS";
|
|
390
|
+
ExportResultCode3[ExportResultCode3["FAILED"] = 1] = "FAILED";
|
|
444
391
|
})(ExportResultCode || (ExportResultCode = {}));
|
|
445
392
|
}
|
|
446
393
|
});
|
|
447
394
|
|
|
448
|
-
//
|
|
395
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js
|
|
449
396
|
function isPlainObject(value) {
|
|
450
397
|
if (!isObjectLike(value) || baseGetTag(value) !== objectTag) {
|
|
451
398
|
return false;
|
|
@@ -488,8 +435,8 @@ function objectToString(value) {
|
|
|
488
435
|
return nativeObjectToString.call(value);
|
|
489
436
|
}
|
|
490
437
|
var objectTag, nullTag, undefinedTag, funcProto, funcToString, objectCtorString, getPrototypeOf, objectProto, hasOwnProperty, symToStringTag, nativeObjectToString;
|
|
491
|
-
var init_lodash_merge =
|
|
492
|
-
"
|
|
438
|
+
var init_lodash_merge = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
439
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js"() {
|
|
493
440
|
"use strict";
|
|
494
441
|
objectTag = "[object Object]";
|
|
495
442
|
nullTag = "[object Null]";
|
|
@@ -505,7 +452,7 @@ var init_lodash_merge = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
505
452
|
}
|
|
506
453
|
});
|
|
507
454
|
|
|
508
|
-
//
|
|
455
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/utils/merge.js
|
|
509
456
|
function merge(...args) {
|
|
510
457
|
let result = args.shift();
|
|
511
458
|
const objects = /* @__PURE__ */ new WeakMap();
|
|
@@ -610,18 +557,18 @@ function shouldMerge(one, two) {
|
|
|
610
557
|
return true;
|
|
611
558
|
}
|
|
612
559
|
var MAX_LEVEL;
|
|
613
|
-
var init_merge =
|
|
614
|
-
"
|
|
560
|
+
var init_merge = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
561
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/utils/merge.js"() {
|
|
615
562
|
"use strict";
|
|
616
563
|
init_lodash_merge();
|
|
617
564
|
MAX_LEVEL = 20;
|
|
618
565
|
}
|
|
619
566
|
});
|
|
620
567
|
|
|
621
|
-
//
|
|
568
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/utils/promise.js
|
|
622
569
|
var Deferred;
|
|
623
|
-
var init_promise =
|
|
624
|
-
"
|
|
570
|
+
var init_promise = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
571
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/utils/promise.js"() {
|
|
625
572
|
"use strict";
|
|
626
573
|
Deferred = class {
|
|
627
574
|
|
|
@@ -646,10 +593,10 @@ var init_promise = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
646
593
|
}
|
|
647
594
|
});
|
|
648
595
|
|
|
649
|
-
//
|
|
596
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/utils/callback.js
|
|
650
597
|
var BindOnceFuture;
|
|
651
|
-
var init_callback =
|
|
652
|
-
"
|
|
598
|
+
var init_callback = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
599
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/utils/callback.js"() {
|
|
653
600
|
"use strict";
|
|
654
601
|
init_promise();
|
|
655
602
|
BindOnceFuture = (_class = class {
|
|
@@ -682,34 +629,33 @@ var init_callback = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
682
629
|
}
|
|
683
630
|
});
|
|
684
631
|
|
|
685
|
-
//
|
|
632
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/internal/exporter.js
|
|
686
633
|
function _export(exporter, arg) {
|
|
687
634
|
return new Promise((resolve) => {
|
|
688
|
-
|
|
635
|
+
_chunkCDBUTZMHjs.context.with(suppressTracing(_chunkCDBUTZMHjs.context.active()), () => {
|
|
689
636
|
exporter.export(arg, (result) => {
|
|
690
637
|
resolve(result);
|
|
691
638
|
});
|
|
692
639
|
});
|
|
693
640
|
});
|
|
694
641
|
}
|
|
695
|
-
var init_exporter =
|
|
696
|
-
"
|
|
642
|
+
var init_exporter = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
643
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/internal/exporter.js"() {
|
|
697
644
|
"use strict";
|
|
698
|
-
|
|
645
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
699
646
|
init_suppress_tracing();
|
|
700
647
|
}
|
|
701
648
|
});
|
|
702
649
|
|
|
703
|
-
//
|
|
650
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/index.js
|
|
704
651
|
var internal;
|
|
705
|
-
var init_esm3 =
|
|
706
|
-
"
|
|
652
|
+
var init_esm3 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
653
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/index.js"() {
|
|
707
654
|
"use strict";
|
|
708
655
|
init_attributes();
|
|
709
656
|
init_global_error_handler();
|
|
710
657
|
init_time();
|
|
711
658
|
init_ExportResult();
|
|
712
|
-
init_utils();
|
|
713
659
|
init_platform();
|
|
714
660
|
init_suppress_tracing();
|
|
715
661
|
init_merge();
|
|
@@ -721,36 +667,36 @@ var init_esm3 = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
721
667
|
}
|
|
722
668
|
});
|
|
723
669
|
|
|
724
|
-
//
|
|
670
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/platform/node/default-service-name.js
|
|
725
671
|
function defaultServiceName() {
|
|
726
672
|
return `unknown_service:${process.argv0}`;
|
|
727
673
|
}
|
|
728
|
-
var init_default_service_name =
|
|
729
|
-
"
|
|
674
|
+
var init_default_service_name = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
675
|
+
"../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/platform/node/default-service-name.js"() {
|
|
730
676
|
"use strict";
|
|
731
677
|
}
|
|
732
678
|
});
|
|
733
679
|
|
|
734
|
-
//
|
|
735
|
-
var init_node2 =
|
|
736
|
-
"
|
|
680
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/platform/node/index.js
|
|
681
|
+
var init_node2 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
682
|
+
"../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/platform/node/index.js"() {
|
|
737
683
|
"use strict";
|
|
738
684
|
init_default_service_name();
|
|
739
685
|
}
|
|
740
686
|
});
|
|
741
687
|
|
|
742
|
-
//
|
|
743
|
-
var init_platform2 =
|
|
744
|
-
"
|
|
688
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/platform/index.js
|
|
689
|
+
var init_platform2 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
690
|
+
"../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/platform/index.js"() {
|
|
745
691
|
"use strict";
|
|
746
692
|
init_node2();
|
|
747
693
|
}
|
|
748
694
|
});
|
|
749
695
|
|
|
750
|
-
//
|
|
696
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/utils.js
|
|
751
697
|
var isPromiseLike;
|
|
752
|
-
var
|
|
753
|
-
"
|
|
698
|
+
var init_utils = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
699
|
+
"../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/utils.js"() {
|
|
754
700
|
"use strict";
|
|
755
701
|
isPromiseLike = (val) => {
|
|
756
702
|
return val !== null && typeof val === "object" && typeof val.then === "function";
|
|
@@ -758,7 +704,7 @@ var init_utils2 = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
758
704
|
}
|
|
759
705
|
});
|
|
760
706
|
|
|
761
|
-
//
|
|
707
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js
|
|
762
708
|
function resourceFromAttributes(attributes) {
|
|
763
709
|
return ResourceImpl.FromAttributeList(Object.entries(attributes));
|
|
764
710
|
}
|
|
@@ -776,7 +722,7 @@ function guardedRawAttributes(attributes) {
|
|
|
776
722
|
return [
|
|
777
723
|
k,
|
|
778
724
|
v.catch((err) => {
|
|
779
|
-
|
|
725
|
+
_chunkCDBUTZMHjs.diag.debug("promise rejection for resource attribute: %s - %s", k, err);
|
|
780
726
|
return void 0;
|
|
781
727
|
})
|
|
782
728
|
];
|
|
@@ -785,14 +731,14 @@ function guardedRawAttributes(attributes) {
|
|
|
785
731
|
});
|
|
786
732
|
}
|
|
787
733
|
var ResourceImpl;
|
|
788
|
-
var init_ResourceImpl =
|
|
789
|
-
"
|
|
734
|
+
var init_ResourceImpl = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
735
|
+
"../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js"() {
|
|
790
736
|
"use strict";
|
|
791
|
-
|
|
737
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
792
738
|
init_esm3();
|
|
793
739
|
init_esm2();
|
|
794
740
|
init_platform2();
|
|
795
|
-
|
|
741
|
+
init_utils();
|
|
796
742
|
ResourceImpl = (_class2 = class _ResourceImpl {
|
|
797
743
|
|
|
798
744
|
__init3() {this._asyncAttributesPending = false}
|
|
@@ -828,7 +774,7 @@ var init_ResourceImpl = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
828
774
|
}
|
|
829
775
|
get attributes() {
|
|
830
776
|
if (this.asyncAttributesPending) {
|
|
831
|
-
|
|
777
|
+
_chunkCDBUTZMHjs.diag.error("Accessing resource attributes before async attributes settled");
|
|
832
778
|
}
|
|
833
779
|
if (this._memoizedAttributes) {
|
|
834
780
|
return this._memoizedAttributes;
|
|
@@ -836,7 +782,7 @@ var init_ResourceImpl = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
836
782
|
const attrs = {};
|
|
837
783
|
for (const [k, v] of this._rawAttributes) {
|
|
838
784
|
if (isPromiseLike(v)) {
|
|
839
|
-
|
|
785
|
+
_chunkCDBUTZMHjs.diag.debug(`Unsettled resource attribute ${k} skipped`);
|
|
840
786
|
continue;
|
|
841
787
|
}
|
|
842
788
|
if (v != null) {
|
|
@@ -863,29 +809,29 @@ var init_ResourceImpl = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
863
809
|
}
|
|
864
810
|
});
|
|
865
811
|
|
|
866
|
-
//
|
|
867
|
-
var init_esm4 =
|
|
868
|
-
"
|
|
812
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/index.js
|
|
813
|
+
var init_esm4 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
814
|
+
"../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/index.js"() {
|
|
869
815
|
"use strict";
|
|
870
816
|
init_ResourceImpl();
|
|
871
817
|
}
|
|
872
818
|
});
|
|
873
819
|
|
|
874
|
-
//
|
|
820
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/enums.js
|
|
875
821
|
var ExceptionEventName;
|
|
876
|
-
var init_enums =
|
|
877
|
-
"
|
|
822
|
+
var init_enums = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
823
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/enums.js"() {
|
|
878
824
|
"use strict";
|
|
879
825
|
ExceptionEventName = "exception";
|
|
880
826
|
}
|
|
881
827
|
});
|
|
882
828
|
|
|
883
|
-
//
|
|
829
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/Span.js
|
|
884
830
|
var SpanImpl2;
|
|
885
|
-
var init_Span =
|
|
886
|
-
"
|
|
831
|
+
var init_Span = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
832
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/Span.js"() {
|
|
887
833
|
"use strict";
|
|
888
|
-
|
|
834
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
889
835
|
init_esm3();
|
|
890
836
|
init_esm2();
|
|
891
837
|
init_enums();
|
|
@@ -906,7 +852,7 @@ var init_Span = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
906
852
|
__init9() {this._droppedLinksCount = 0}
|
|
907
853
|
|
|
908
854
|
__init10() {this.status = {
|
|
909
|
-
code:
|
|
855
|
+
code: _chunkCDBUTZMHjs.SpanStatusCode.UNSET
|
|
910
856
|
}}
|
|
911
857
|
__init11() {this.endTime = [0, 0]}
|
|
912
858
|
__init12() {this._ended = false}
|
|
@@ -948,11 +894,11 @@ var init_Span = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
948
894
|
if (value == null || this._isSpanEnded())
|
|
949
895
|
return this;
|
|
950
896
|
if (key.length === 0) {
|
|
951
|
-
|
|
897
|
+
_chunkCDBUTZMHjs.diag.warn(`Invalid attribute key: ${key}`);
|
|
952
898
|
return this;
|
|
953
899
|
}
|
|
954
900
|
if (!isAttributeValue(value)) {
|
|
955
|
-
|
|
901
|
+
_chunkCDBUTZMHjs.diag.warn(`Invalid attribute value set for key: ${key}`);
|
|
956
902
|
return this;
|
|
957
903
|
}
|
|
958
904
|
const { attributeCountLimit } = this._spanLimits;
|
|
@@ -981,13 +927,13 @@ var init_Span = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
981
927
|
return this;
|
|
982
928
|
const { eventCountLimit } = this._spanLimits;
|
|
983
929
|
if (eventCountLimit === 0) {
|
|
984
|
-
|
|
930
|
+
_chunkCDBUTZMHjs.diag.warn("No events allowed.");
|
|
985
931
|
this._droppedEventsCount++;
|
|
986
932
|
return this;
|
|
987
933
|
}
|
|
988
934
|
if (eventCountLimit !== void 0 && this.events.length >= eventCountLimit) {
|
|
989
935
|
if (this._droppedEventsCount === 0) {
|
|
990
|
-
|
|
936
|
+
_chunkCDBUTZMHjs.diag.debug("Dropping extra events.");
|
|
991
937
|
}
|
|
992
938
|
this.events.shift();
|
|
993
939
|
this._droppedEventsCount++;
|
|
@@ -1020,7 +966,7 @@ var init_Span = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1020
966
|
return this;
|
|
1021
967
|
this.status = { ...status };
|
|
1022
968
|
if (this.status.message != null && typeof status.message !== "string") {
|
|
1023
|
-
|
|
969
|
+
_chunkCDBUTZMHjs.diag.warn(`Dropping invalid status.message of type '${typeof status.message}', expected 'string'`);
|
|
1024
970
|
delete this.status.message;
|
|
1025
971
|
}
|
|
1026
972
|
return this;
|
|
@@ -1033,19 +979,19 @@ var init_Span = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1033
979
|
}
|
|
1034
980
|
end(endTime) {
|
|
1035
981
|
if (this._isSpanEnded()) {
|
|
1036
|
-
|
|
982
|
+
_chunkCDBUTZMHjs.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);
|
|
1037
983
|
return;
|
|
1038
984
|
}
|
|
1039
985
|
this._ended = true;
|
|
1040
986
|
this.endTime = this._getTime(endTime);
|
|
1041
987
|
this._duration = hrTimeDuration(this.startTime, this.endTime);
|
|
1042
988
|
if (this._duration[0] < 0) {
|
|
1043
|
-
|
|
989
|
+
_chunkCDBUTZMHjs.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.", this.startTime, this.endTime);
|
|
1044
990
|
this.endTime = this.startTime.slice();
|
|
1045
991
|
this._duration = [0, 0];
|
|
1046
992
|
}
|
|
1047
993
|
if (this._droppedEventsCount > 0) {
|
|
1048
|
-
|
|
994
|
+
_chunkCDBUTZMHjs.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`);
|
|
1049
995
|
}
|
|
1050
996
|
this._spanProcessor.onEnd(this);
|
|
1051
997
|
}
|
|
@@ -1091,7 +1037,7 @@ var init_Span = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1091
1037
|
if (attributes[ATTR_EXCEPTION_TYPE] || attributes[ATTR_EXCEPTION_MESSAGE]) {
|
|
1092
1038
|
this.addEvent(ExceptionEventName, attributes, time);
|
|
1093
1039
|
} else {
|
|
1094
|
-
|
|
1040
|
+
_chunkCDBUTZMHjs.diag.warn(`Failed to record an exception ${exception}`);
|
|
1095
1041
|
}
|
|
1096
1042
|
}
|
|
1097
1043
|
get duration() {
|
|
@@ -1112,7 +1058,7 @@ var init_Span = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1112
1058
|
_isSpanEnded() {
|
|
1113
1059
|
if (this._ended) {
|
|
1114
1060
|
const error2 = new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);
|
|
1115
|
-
|
|
1061
|
+
_chunkCDBUTZMHjs.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`, error2);
|
|
1116
1062
|
}
|
|
1117
1063
|
return this._ended;
|
|
1118
1064
|
}
|
|
@@ -1140,7 +1086,7 @@ var init_Span = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1140
1086
|
_truncateToSize(value) {
|
|
1141
1087
|
const limit = this._attributeValueLengthLimit;
|
|
1142
1088
|
if (limit <= 0) {
|
|
1143
|
-
|
|
1089
|
+
_chunkCDBUTZMHjs.diag.warn(`Attribute value limit must be positive, got ${limit}`);
|
|
1144
1090
|
return value;
|
|
1145
1091
|
}
|
|
1146
1092
|
if (typeof value === "string") {
|
|
@@ -1155,10 +1101,10 @@ var init_Span = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1155
1101
|
}
|
|
1156
1102
|
});
|
|
1157
1103
|
|
|
1158
|
-
//
|
|
1104
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js
|
|
1159
1105
|
var SamplingDecision2;
|
|
1160
|
-
var init_Sampler =
|
|
1161
|
-
"
|
|
1106
|
+
var init_Sampler = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1107
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"() {
|
|
1162
1108
|
"use strict";
|
|
1163
1109
|
(function(SamplingDecision3) {
|
|
1164
1110
|
SamplingDecision3[SamplingDecision3["NOT_RECORD"] = 0] = "NOT_RECORD";
|
|
@@ -1168,10 +1114,10 @@ var init_Sampler = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1168
1114
|
}
|
|
1169
1115
|
});
|
|
1170
1116
|
|
|
1171
|
-
//
|
|
1117
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js
|
|
1172
1118
|
var AlwaysOffSampler;
|
|
1173
|
-
var init_AlwaysOffSampler =
|
|
1174
|
-
"
|
|
1119
|
+
var init_AlwaysOffSampler = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1120
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js"() {
|
|
1175
1121
|
"use strict";
|
|
1176
1122
|
init_Sampler();
|
|
1177
1123
|
AlwaysOffSampler = class {
|
|
@@ -1187,10 +1133,10 @@ var init_AlwaysOffSampler = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1187
1133
|
}
|
|
1188
1134
|
});
|
|
1189
1135
|
|
|
1190
|
-
//
|
|
1136
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js
|
|
1191
1137
|
var AlwaysOnSampler;
|
|
1192
|
-
var init_AlwaysOnSampler =
|
|
1193
|
-
"
|
|
1138
|
+
var init_AlwaysOnSampler = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1139
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js"() {
|
|
1194
1140
|
"use strict";
|
|
1195
1141
|
init_Sampler();
|
|
1196
1142
|
AlwaysOnSampler = class {
|
|
@@ -1206,12 +1152,12 @@ var init_AlwaysOnSampler = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1206
1152
|
}
|
|
1207
1153
|
});
|
|
1208
1154
|
|
|
1209
|
-
//
|
|
1155
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/ParentBasedSampler.js
|
|
1210
1156
|
var ParentBasedSampler;
|
|
1211
|
-
var init_ParentBasedSampler =
|
|
1212
|
-
"
|
|
1157
|
+
var init_ParentBasedSampler = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1158
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/ParentBasedSampler.js"() {
|
|
1213
1159
|
"use strict";
|
|
1214
|
-
|
|
1160
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
1215
1161
|
init_esm3();
|
|
1216
1162
|
init_AlwaysOffSampler();
|
|
1217
1163
|
init_AlwaysOnSampler();
|
|
@@ -1233,17 +1179,17 @@ var init_ParentBasedSampler = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1233
1179
|
this._localParentNotSampled = _nullishCoalesce(config.localParentNotSampled, () => ( new AlwaysOffSampler()));
|
|
1234
1180
|
}
|
|
1235
1181
|
shouldSample(context2, traceId, spanName, spanKind, attributes, links) {
|
|
1236
|
-
const parentContext =
|
|
1237
|
-
if (!parentContext || !
|
|
1182
|
+
const parentContext = _chunkCDBUTZMHjs.trace.getSpanContext(context2);
|
|
1183
|
+
if (!parentContext || !_chunkCDBUTZMHjs.isSpanContextValid.call(void 0, parentContext)) {
|
|
1238
1184
|
return this._root.shouldSample(context2, traceId, spanName, spanKind, attributes, links);
|
|
1239
1185
|
}
|
|
1240
1186
|
if (parentContext.isRemote) {
|
|
1241
|
-
if (parentContext.traceFlags &
|
|
1187
|
+
if (parentContext.traceFlags & _chunkCDBUTZMHjs.TraceFlags.SAMPLED) {
|
|
1242
1188
|
return this._remoteParentSampled.shouldSample(context2, traceId, spanName, spanKind, attributes, links);
|
|
1243
1189
|
}
|
|
1244
1190
|
return this._remoteParentNotSampled.shouldSample(context2, traceId, spanName, spanKind, attributes, links);
|
|
1245
1191
|
}
|
|
1246
|
-
if (parentContext.traceFlags &
|
|
1192
|
+
if (parentContext.traceFlags & _chunkCDBUTZMHjs.TraceFlags.SAMPLED) {
|
|
1247
1193
|
return this._localParentSampled.shouldSample(context2, traceId, spanName, spanKind, attributes, links);
|
|
1248
1194
|
}
|
|
1249
1195
|
return this._localParentNotSampled.shouldSample(context2, traceId, spanName, spanKind, attributes, links);
|
|
@@ -1255,12 +1201,12 @@ var init_ParentBasedSampler = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1255
1201
|
}
|
|
1256
1202
|
});
|
|
1257
1203
|
|
|
1258
|
-
//
|
|
1204
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js
|
|
1259
1205
|
var TraceIdRatioBasedSampler;
|
|
1260
|
-
var init_TraceIdRatioBasedSampler =
|
|
1261
|
-
"
|
|
1206
|
+
var init_TraceIdRatioBasedSampler = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1207
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js"() {
|
|
1262
1208
|
"use strict";
|
|
1263
|
-
|
|
1209
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
1264
1210
|
init_Sampler();
|
|
1265
1211
|
TraceIdRatioBasedSampler = class {
|
|
1266
1212
|
|
|
@@ -1272,7 +1218,7 @@ var init_TraceIdRatioBasedSampler = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1272
1218
|
}
|
|
1273
1219
|
shouldSample(context2, traceId) {
|
|
1274
1220
|
return {
|
|
1275
|
-
decision:
|
|
1221
|
+
decision: _chunkCDBUTZMHjs.isValidTraceId.call(void 0, traceId) && this._accumulate(traceId) < this._upperBound ? SamplingDecision2.RECORD_AND_SAMPLED : SamplingDecision2.NOT_RECORD
|
|
1276
1222
|
};
|
|
1277
1223
|
}
|
|
1278
1224
|
toString() {
|
|
@@ -1296,7 +1242,7 @@ var init_TraceIdRatioBasedSampler = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1296
1242
|
}
|
|
1297
1243
|
});
|
|
1298
1244
|
|
|
1299
|
-
//
|
|
1245
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js
|
|
1300
1246
|
function loadDefaultConfig() {
|
|
1301
1247
|
return {
|
|
1302
1248
|
sampler: buildSamplerFromEnv(),
|
|
@@ -1337,7 +1283,7 @@ function buildSamplerFromEnv() {
|
|
|
1337
1283
|
root: new TraceIdRatioBasedSampler(getSamplerProbabilityFromEnv())
|
|
1338
1284
|
});
|
|
1339
1285
|
default:
|
|
1340
|
-
|
|
1286
|
+
_chunkCDBUTZMHjs.diag.error(`OTEL_TRACES_SAMPLER value "${sampler}" invalid, defaulting to "${"parentbased_always_on"}".`);
|
|
1341
1287
|
return new ParentBasedSampler({
|
|
1342
1288
|
root: new AlwaysOnSampler()
|
|
1343
1289
|
});
|
|
@@ -1346,20 +1292,20 @@ function buildSamplerFromEnv() {
|
|
|
1346
1292
|
function getSamplerProbabilityFromEnv() {
|
|
1347
1293
|
const probability = getNumberFromEnv("OTEL_TRACES_SAMPLER_ARG");
|
|
1348
1294
|
if (probability == null) {
|
|
1349
|
-
|
|
1295
|
+
_chunkCDBUTZMHjs.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${DEFAULT_RATIO}.`);
|
|
1350
1296
|
return DEFAULT_RATIO;
|
|
1351
1297
|
}
|
|
1352
1298
|
if (probability < 0 || probability > 1) {
|
|
1353
|
-
|
|
1299
|
+
_chunkCDBUTZMHjs.diag.error(`OTEL_TRACES_SAMPLER_ARG=${probability} was given, but it is out of range ([0..1]), defaulting to ${DEFAULT_RATIO}.`);
|
|
1354
1300
|
return DEFAULT_RATIO;
|
|
1355
1301
|
}
|
|
1356
1302
|
return probability;
|
|
1357
1303
|
}
|
|
1358
1304
|
var DEFAULT_RATIO;
|
|
1359
|
-
var init_config =
|
|
1360
|
-
"
|
|
1305
|
+
var init_config = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1306
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js"() {
|
|
1361
1307
|
"use strict";
|
|
1362
|
-
|
|
1308
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
1363
1309
|
init_esm3();
|
|
1364
1310
|
init_AlwaysOffSampler();
|
|
1365
1311
|
init_AlwaysOnSampler();
|
|
@@ -1369,7 +1315,7 @@ var init_config = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1369
1315
|
}
|
|
1370
1316
|
});
|
|
1371
1317
|
|
|
1372
|
-
//
|
|
1318
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js
|
|
1373
1319
|
function mergeConfig(userConfig) {
|
|
1374
1320
|
const perInstanceDefaults = {
|
|
1375
1321
|
sampler: buildSamplerFromEnv()
|
|
@@ -1387,8 +1333,8 @@ function reconfigureLimits(userConfig) {
|
|
|
1387
1333
|
return Object.assign({}, userConfig, { spanLimits });
|
|
1388
1334
|
}
|
|
1389
1335
|
var DEFAULT_ATTRIBUTE_COUNT_LIMIT, DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT;
|
|
1390
|
-
var init_utility =
|
|
1391
|
-
"
|
|
1336
|
+
var init_utility = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1337
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js"() {
|
|
1392
1338
|
"use strict";
|
|
1393
1339
|
init_config();
|
|
1394
1340
|
init_esm3();
|
|
@@ -1397,12 +1343,12 @@ var init_utility = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1397
1343
|
}
|
|
1398
1344
|
});
|
|
1399
1345
|
|
|
1400
|
-
//
|
|
1346
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js
|
|
1401
1347
|
var BatchSpanProcessorBase;
|
|
1402
|
-
var init_BatchSpanProcessorBase =
|
|
1403
|
-
"
|
|
1348
|
+
var init_BatchSpanProcessorBase = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1349
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js"() {
|
|
1404
1350
|
"use strict";
|
|
1405
|
-
|
|
1351
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
1406
1352
|
init_esm3();
|
|
1407
1353
|
BatchSpanProcessorBase = (_class4 = class {
|
|
1408
1354
|
|
|
@@ -1423,7 +1369,7 @@ var init_BatchSpanProcessorBase = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1423
1369
|
this._exportTimeoutMillis = typeof _optionalChain([config, 'optionalAccess', _13 => _13.exportTimeoutMillis]) === "number" ? config.exportTimeoutMillis : _nullishCoalesce(getNumberFromEnv("OTEL_BSP_EXPORT_TIMEOUT"), () => ( 3e4));
|
|
1424
1370
|
this._shutdownOnce = new BindOnceFuture(this._shutdown, this);
|
|
1425
1371
|
if (this._maxExportBatchSize > this._maxQueueSize) {
|
|
1426
|
-
|
|
1372
|
+
_chunkCDBUTZMHjs.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize");
|
|
1427
1373
|
this._maxExportBatchSize = this._maxQueueSize;
|
|
1428
1374
|
}
|
|
1429
1375
|
}
|
|
@@ -1440,7 +1386,7 @@ var init_BatchSpanProcessorBase = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1440
1386
|
if (this._shutdownOnce.isCalled) {
|
|
1441
1387
|
return;
|
|
1442
1388
|
}
|
|
1443
|
-
if ((span.spanContext().traceFlags &
|
|
1389
|
+
if ((span.spanContext().traceFlags & _chunkCDBUTZMHjs.TraceFlags.SAMPLED) === 0) {
|
|
1444
1390
|
return;
|
|
1445
1391
|
}
|
|
1446
1392
|
this._addToBuffer(span);
|
|
@@ -1461,13 +1407,13 @@ var init_BatchSpanProcessorBase = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1461
1407
|
_addToBuffer(span) {
|
|
1462
1408
|
if (this._finishedSpans.length >= this._maxQueueSize) {
|
|
1463
1409
|
if (this._droppedSpansCount === 0) {
|
|
1464
|
-
|
|
1410
|
+
_chunkCDBUTZMHjs.diag.debug("maxQueueSize reached, dropping spans");
|
|
1465
1411
|
}
|
|
1466
1412
|
this._droppedSpansCount++;
|
|
1467
1413
|
return;
|
|
1468
1414
|
}
|
|
1469
1415
|
if (this._droppedSpansCount > 0) {
|
|
1470
|
-
|
|
1416
|
+
_chunkCDBUTZMHjs.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`);
|
|
1471
1417
|
this._droppedSpansCount = 0;
|
|
1472
1418
|
}
|
|
1473
1419
|
this._finishedSpans.push(span);
|
|
@@ -1499,7 +1445,7 @@ var init_BatchSpanProcessorBase = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1499
1445
|
const timer = setTimeout(() => {
|
|
1500
1446
|
reject2(new Error("Timeout"));
|
|
1501
1447
|
}, this._exportTimeoutMillis);
|
|
1502
|
-
|
|
1448
|
+
_chunkCDBUTZMHjs.context.with(suppressTracing(_chunkCDBUTZMHjs.context.active()), () => {
|
|
1503
1449
|
let spans;
|
|
1504
1450
|
if (this._finishedSpans.length <= this._maxExportBatchSize) {
|
|
1505
1451
|
spans = this._finishedSpans;
|
|
@@ -1568,10 +1514,10 @@ var init_BatchSpanProcessorBase = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1568
1514
|
}
|
|
1569
1515
|
});
|
|
1570
1516
|
|
|
1571
|
-
//
|
|
1517
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/node/export/BatchSpanProcessor.js
|
|
1572
1518
|
var BatchSpanProcessor;
|
|
1573
|
-
var init_BatchSpanProcessor =
|
|
1574
|
-
"
|
|
1519
|
+
var init_BatchSpanProcessor = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1520
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/node/export/BatchSpanProcessor.js"() {
|
|
1575
1521
|
"use strict";
|
|
1576
1522
|
init_BatchSpanProcessorBase();
|
|
1577
1523
|
BatchSpanProcessor = class extends BatchSpanProcessorBase {
|
|
@@ -1581,7 +1527,7 @@ var init_BatchSpanProcessor = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1581
1527
|
}
|
|
1582
1528
|
});
|
|
1583
1529
|
|
|
1584
|
-
//
|
|
1530
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/node/RandomIdGenerator.js
|
|
1585
1531
|
function getIdGenerator(bytes) {
|
|
1586
1532
|
return function generateId() {
|
|
1587
1533
|
for (let i = 0; i < bytes / 4; i++) {
|
|
@@ -1598,8 +1544,8 @@ function getIdGenerator(bytes) {
|
|
|
1598
1544
|
};
|
|
1599
1545
|
}
|
|
1600
1546
|
var SPAN_ID_BYTES, TRACE_ID_BYTES, RandomIdGenerator, SHARED_BUFFER;
|
|
1601
|
-
var init_RandomIdGenerator =
|
|
1602
|
-
"
|
|
1547
|
+
var init_RandomIdGenerator = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1548
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/node/RandomIdGenerator.js"() {
|
|
1603
1549
|
"use strict";
|
|
1604
1550
|
SPAN_ID_BYTES = 8;
|
|
1605
1551
|
TRACE_ID_BYTES = 16;
|
|
@@ -1619,29 +1565,29 @@ var init_RandomIdGenerator = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1619
1565
|
}
|
|
1620
1566
|
});
|
|
1621
1567
|
|
|
1622
|
-
//
|
|
1623
|
-
var init_node3 =
|
|
1624
|
-
"
|
|
1568
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/node/index.js
|
|
1569
|
+
var init_node3 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1570
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/node/index.js"() {
|
|
1625
1571
|
"use strict";
|
|
1626
1572
|
init_BatchSpanProcessor();
|
|
1627
1573
|
init_RandomIdGenerator();
|
|
1628
1574
|
}
|
|
1629
1575
|
});
|
|
1630
1576
|
|
|
1631
|
-
//
|
|
1632
|
-
var init_platform3 =
|
|
1633
|
-
"
|
|
1577
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/index.js
|
|
1578
|
+
var init_platform3 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1579
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/index.js"() {
|
|
1634
1580
|
"use strict";
|
|
1635
1581
|
init_node3();
|
|
1636
1582
|
}
|
|
1637
1583
|
});
|
|
1638
1584
|
|
|
1639
|
-
//
|
|
1585
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/Tracer.js
|
|
1640
1586
|
var Tracer;
|
|
1641
|
-
var init_Tracer =
|
|
1642
|
-
"
|
|
1587
|
+
var init_Tracer = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1588
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/Tracer.js"() {
|
|
1643
1589
|
"use strict";
|
|
1644
|
-
|
|
1590
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
1645
1591
|
init_esm3();
|
|
1646
1592
|
init_Span();
|
|
1647
1593
|
init_utility();
|
|
@@ -1671,14 +1617,14 @@ var init_Tracer = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1671
1617
|
* Starts a new Span or returns the default NoopSpan based on the sampling
|
|
1672
1618
|
* decision.
|
|
1673
1619
|
*/
|
|
1674
|
-
startSpan(name, options = {}, context2 =
|
|
1620
|
+
startSpan(name, options = {}, context2 = _chunkCDBUTZMHjs.context.active()) {
|
|
1675
1621
|
if (options.root) {
|
|
1676
|
-
context2 =
|
|
1622
|
+
context2 = _chunkCDBUTZMHjs.trace.deleteSpan(context2);
|
|
1677
1623
|
}
|
|
1678
|
-
const parentSpan =
|
|
1624
|
+
const parentSpan = _chunkCDBUTZMHjs.trace.getSpan(context2);
|
|
1679
1625
|
if (isTracingSuppressed(context2)) {
|
|
1680
|
-
|
|
1681
|
-
const nonRecordingSpan =
|
|
1626
|
+
_chunkCDBUTZMHjs.diag.debug("Instrumentation suppressed, returning Noop Span");
|
|
1627
|
+
const nonRecordingSpan = _chunkCDBUTZMHjs.trace.wrapSpanContext(_chunkCDBUTZMHjs.INVALID_SPAN_CONTEXT);
|
|
1682
1628
|
return nonRecordingSpan;
|
|
1683
1629
|
}
|
|
1684
1630
|
const parentSpanContext = _optionalChain([parentSpan, 'optionalAccess', _14 => _14.spanContext, 'call', _15 => _15()]);
|
|
@@ -1686,14 +1632,14 @@ var init_Tracer = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1686
1632
|
let validParentSpanContext;
|
|
1687
1633
|
let traceId;
|
|
1688
1634
|
let traceState;
|
|
1689
|
-
if (!parentSpanContext || !
|
|
1635
|
+
if (!parentSpanContext || !_chunkCDBUTZMHjs.trace.isSpanContextValid(parentSpanContext)) {
|
|
1690
1636
|
traceId = this._idGenerator.generateTraceId();
|
|
1691
1637
|
} else {
|
|
1692
1638
|
traceId = parentSpanContext.traceId;
|
|
1693
1639
|
traceState = parentSpanContext.traceState;
|
|
1694
1640
|
validParentSpanContext = parentSpanContext;
|
|
1695
1641
|
}
|
|
1696
|
-
const spanKind = _nullishCoalesce(options.kind, () => (
|
|
1642
|
+
const spanKind = _nullishCoalesce(options.kind, () => ( _chunkCDBUTZMHjs.SpanKind.INTERNAL));
|
|
1697
1643
|
const links = (_nullishCoalesce(options.links, () => ( []))).map((link) => {
|
|
1698
1644
|
return {
|
|
1699
1645
|
context: link.context,
|
|
@@ -1703,11 +1649,11 @@ var init_Tracer = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1703
1649
|
const attributes = sanitizeAttributes(options.attributes);
|
|
1704
1650
|
const samplingResult = this._sampler.shouldSample(context2, traceId, name, spanKind, attributes, links);
|
|
1705
1651
|
traceState = _nullishCoalesce(samplingResult.traceState, () => ( traceState));
|
|
1706
|
-
const traceFlags = samplingResult.decision ===
|
|
1652
|
+
const traceFlags = samplingResult.decision === _chunkCDBUTZMHjs.SamplingDecision.RECORD_AND_SAMPLED ? _chunkCDBUTZMHjs.TraceFlags.SAMPLED : _chunkCDBUTZMHjs.TraceFlags.NONE;
|
|
1707
1653
|
const spanContext = { traceId, spanId, traceFlags, traceState };
|
|
1708
|
-
if (samplingResult.decision ===
|
|
1709
|
-
|
|
1710
|
-
const nonRecordingSpan =
|
|
1654
|
+
if (samplingResult.decision === _chunkCDBUTZMHjs.SamplingDecision.NOT_RECORD) {
|
|
1655
|
+
_chunkCDBUTZMHjs.diag.debug("Recording is off, propagating context in a non-recording span");
|
|
1656
|
+
const nonRecordingSpan = _chunkCDBUTZMHjs.trace.wrapSpanContext(spanContext);
|
|
1711
1657
|
return nonRecordingSpan;
|
|
1712
1658
|
}
|
|
1713
1659
|
const initAttributes = sanitizeAttributes(Object.assign(attributes, samplingResult.attributes));
|
|
@@ -1743,10 +1689,10 @@ var init_Tracer = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1743
1689
|
ctx = arg3;
|
|
1744
1690
|
fn = arg4;
|
|
1745
1691
|
}
|
|
1746
|
-
const parentContext = _nullishCoalesce(ctx, () => (
|
|
1692
|
+
const parentContext = _nullishCoalesce(ctx, () => ( _chunkCDBUTZMHjs.context.active()));
|
|
1747
1693
|
const span = this.startSpan(name, opts, parentContext);
|
|
1748
|
-
const contextWithSpanSet =
|
|
1749
|
-
return
|
|
1694
|
+
const contextWithSpanSet = _chunkCDBUTZMHjs.trace.setSpan(parentContext, span);
|
|
1695
|
+
return _chunkCDBUTZMHjs.context.with(contextWithSpanSet, fn, void 0, span);
|
|
1750
1696
|
}
|
|
1751
1697
|
/** Returns the active {@link GeneralLimits}. */
|
|
1752
1698
|
getGeneralLimits() {
|
|
@@ -1760,10 +1706,10 @@ var init_Tracer = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1760
1706
|
}
|
|
1761
1707
|
});
|
|
1762
1708
|
|
|
1763
|
-
//
|
|
1709
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/MultiSpanProcessor.js
|
|
1764
1710
|
var MultiSpanProcessor;
|
|
1765
|
-
var init_MultiSpanProcessor =
|
|
1766
|
-
"
|
|
1711
|
+
var init_MultiSpanProcessor = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1712
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/MultiSpanProcessor.js"() {
|
|
1767
1713
|
"use strict";
|
|
1768
1714
|
init_esm3();
|
|
1769
1715
|
MultiSpanProcessor = class {
|
|
@@ -1810,10 +1756,10 @@ var init_MultiSpanProcessor = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1810
1756
|
}
|
|
1811
1757
|
});
|
|
1812
1758
|
|
|
1813
|
-
//
|
|
1759
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider.js
|
|
1814
1760
|
var ForceFlushState, BasicTracerProvider;
|
|
1815
|
-
var init_BasicTracerProvider =
|
|
1816
|
-
"
|
|
1761
|
+
var init_BasicTracerProvider = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1762
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider.js"() {
|
|
1817
1763
|
"use strict";
|
|
1818
1764
|
init_esm3();
|
|
1819
1765
|
init_esm4();
|
|
@@ -1891,10 +1837,10 @@ var init_BasicTracerProvider = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1891
1837
|
}
|
|
1892
1838
|
});
|
|
1893
1839
|
|
|
1894
|
-
//
|
|
1840
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/ConsoleSpanExporter.js
|
|
1895
1841
|
var ConsoleSpanExporter;
|
|
1896
|
-
var init_ConsoleSpanExporter =
|
|
1897
|
-
"
|
|
1842
|
+
var init_ConsoleSpanExporter = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1843
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/ConsoleSpanExporter.js"() {
|
|
1898
1844
|
"use strict";
|
|
1899
1845
|
init_esm3();
|
|
1900
1846
|
ConsoleSpanExporter = class {
|
|
@@ -1960,10 +1906,10 @@ var init_ConsoleSpanExporter = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
1960
1906
|
}
|
|
1961
1907
|
});
|
|
1962
1908
|
|
|
1963
|
-
//
|
|
1909
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/InMemorySpanExporter.js
|
|
1964
1910
|
var InMemorySpanExporter;
|
|
1965
|
-
var init_InMemorySpanExporter =
|
|
1966
|
-
"
|
|
1911
|
+
var init_InMemorySpanExporter = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1912
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/InMemorySpanExporter.js"() {
|
|
1967
1913
|
"use strict";
|
|
1968
1914
|
init_esm3();
|
|
1969
1915
|
InMemorySpanExporter = (_class7 = class {constructor() { _class7.prototype.__init20.call(this);_class7.prototype.__init21.call(this); }
|
|
@@ -2003,12 +1949,12 @@ var init_InMemorySpanExporter = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2003
1949
|
}
|
|
2004
1950
|
});
|
|
2005
1951
|
|
|
2006
|
-
//
|
|
1952
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/SimpleSpanProcessor.js
|
|
2007
1953
|
var SimpleSpanProcessor;
|
|
2008
|
-
var init_SimpleSpanProcessor =
|
|
2009
|
-
"
|
|
1954
|
+
var init_SimpleSpanProcessor = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
1955
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/SimpleSpanProcessor.js"() {
|
|
2010
1956
|
"use strict";
|
|
2011
|
-
|
|
1957
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
2012
1958
|
init_esm3();
|
|
2013
1959
|
SimpleSpanProcessor = class {
|
|
2014
1960
|
|
|
@@ -2031,7 +1977,7 @@ var init_SimpleSpanProcessor = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2031
1977
|
if (this._shutdownOnce.isCalled) {
|
|
2032
1978
|
return;
|
|
2033
1979
|
}
|
|
2034
|
-
if ((span.spanContext().traceFlags &
|
|
1980
|
+
if ((span.spanContext().traceFlags & _chunkCDBUTZMHjs.TraceFlags.SAMPLED) === 0) {
|
|
2035
1981
|
return;
|
|
2036
1982
|
}
|
|
2037
1983
|
const pendingExport = this._doExport(span).catch((err) => globalErrorHandler(err));
|
|
@@ -2057,10 +2003,10 @@ var init_SimpleSpanProcessor = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2057
2003
|
}
|
|
2058
2004
|
});
|
|
2059
2005
|
|
|
2060
|
-
//
|
|
2006
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/NoopSpanProcessor.js
|
|
2061
2007
|
var NoopSpanProcessor;
|
|
2062
|
-
var init_NoopSpanProcessor =
|
|
2063
|
-
"
|
|
2008
|
+
var init_NoopSpanProcessor = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2009
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/export/NoopSpanProcessor.js"() {
|
|
2064
2010
|
"use strict";
|
|
2065
2011
|
NoopSpanProcessor = class {
|
|
2066
2012
|
onStart(_span, _context) {
|
|
@@ -2077,9 +2023,9 @@ var init_NoopSpanProcessor = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2077
2023
|
}
|
|
2078
2024
|
});
|
|
2079
2025
|
|
|
2080
|
-
//
|
|
2026
|
+
// ../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/index.js
|
|
2081
2027
|
var esm_exports2 = {};
|
|
2082
|
-
|
|
2028
|
+
_chunkCDBUTZMHjs.__export.call(void 0, esm_exports2, {
|
|
2083
2029
|
AlwaysOffSampler: () => AlwaysOffSampler,
|
|
2084
2030
|
AlwaysOnSampler: () => AlwaysOnSampler,
|
|
2085
2031
|
BasicTracerProvider: () => BasicTracerProvider,
|
|
@@ -2093,8 +2039,8 @@ _chunkWEZHHYVUjs.__export.call(void 0, esm_exports2, {
|
|
|
2093
2039
|
SimpleSpanProcessor: () => SimpleSpanProcessor,
|
|
2094
2040
|
TraceIdRatioBasedSampler: () => TraceIdRatioBasedSampler
|
|
2095
2041
|
});
|
|
2096
|
-
var init_esm5 =
|
|
2097
|
-
"
|
|
2042
|
+
var init_esm5 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2043
|
+
"../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/esm/index.js"() {
|
|
2098
2044
|
"use strict";
|
|
2099
2045
|
init_BasicTracerProvider();
|
|
2100
2046
|
init_platform3();
|
|
@@ -2110,10 +2056,10 @@ var init_esm5 = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2110
2056
|
}
|
|
2111
2057
|
});
|
|
2112
2058
|
|
|
2113
|
-
//
|
|
2059
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js
|
|
2114
2060
|
var OTLPExporterBase;
|
|
2115
|
-
var init_OTLPExporterBase =
|
|
2116
|
-
"
|
|
2061
|
+
var init_OTLPExporterBase = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2062
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js"() {
|
|
2117
2063
|
"use strict";
|
|
2118
2064
|
OTLPExporterBase = class {
|
|
2119
2065
|
|
|
@@ -2138,10 +2084,10 @@ var init_OTLPExporterBase = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2138
2084
|
}
|
|
2139
2085
|
});
|
|
2140
2086
|
|
|
2141
|
-
//
|
|
2087
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js
|
|
2142
2088
|
var OTLPExporterError;
|
|
2143
|
-
var init_types =
|
|
2144
|
-
"
|
|
2089
|
+
var init_types = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2090
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js"() {
|
|
2145
2091
|
"use strict";
|
|
2146
2092
|
OTLPExporterError = (_class8 = class extends Error {
|
|
2147
2093
|
|
|
@@ -2156,7 +2102,7 @@ var init_types = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2156
2102
|
}
|
|
2157
2103
|
});
|
|
2158
2104
|
|
|
2159
|
-
//
|
|
2105
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js
|
|
2160
2106
|
function validateTimeoutMillis(timeoutMillis) {
|
|
2161
2107
|
if (Number.isFinite(timeoutMillis) && timeoutMillis > 0) {
|
|
2162
2108
|
return timeoutMillis;
|
|
@@ -2183,19 +2129,19 @@ function getSharedConfigurationDefaults() {
|
|
|
2183
2129
|
compression: "none"
|
|
2184
2130
|
};
|
|
2185
2131
|
}
|
|
2186
|
-
var init_shared_configuration =
|
|
2187
|
-
"
|
|
2132
|
+
var init_shared_configuration = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2133
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js"() {
|
|
2188
2134
|
"use strict";
|
|
2189
2135
|
}
|
|
2190
2136
|
});
|
|
2191
2137
|
|
|
2192
|
-
//
|
|
2138
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js
|
|
2193
2139
|
function createBoundedQueueExportPromiseHandler(options) {
|
|
2194
2140
|
return new BoundedQueueExportPromiseHandler(options.concurrencyLimit);
|
|
2195
2141
|
}
|
|
2196
2142
|
var BoundedQueueExportPromiseHandler;
|
|
2197
|
-
var init_bounded_queue_export_promise_handler =
|
|
2198
|
-
"
|
|
2143
|
+
var init_bounded_queue_export_promise_handler = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2144
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js"() {
|
|
2199
2145
|
"use strict";
|
|
2200
2146
|
BoundedQueueExportPromiseHandler = (_class9 = class {
|
|
2201
2147
|
|
|
@@ -2213,7 +2159,7 @@ var init_bounded_queue_export_promise_handler = _chunkWEZHHYVUjs.__esm.call(void
|
|
|
2213
2159
|
this._sendingPromises.push(promise);
|
|
2214
2160
|
const popPromise = () => {
|
|
2215
2161
|
const index = this._sendingPromises.indexOf(promise);
|
|
2216
|
-
|
|
2162
|
+
this._sendingPromises.splice(index, 1);
|
|
2217
2163
|
};
|
|
2218
2164
|
promise.then(popPromise, popPromise);
|
|
2219
2165
|
}
|
|
@@ -2227,7 +2173,92 @@ var init_bounded_queue_export_promise_handler = _chunkWEZHHYVUjs.__esm.call(void
|
|
|
2227
2173
|
}
|
|
2228
2174
|
});
|
|
2229
2175
|
|
|
2230
|
-
//
|
|
2176
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/baggage/constants.js
|
|
2177
|
+
var BAGGAGE_KEY_PAIR_SEPARATOR, BAGGAGE_PROPERTIES_SEPARATOR, BAGGAGE_ITEMS_SEPARATOR;
|
|
2178
|
+
var init_constants = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2179
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/baggage/constants.js"() {
|
|
2180
|
+
"use strict";
|
|
2181
|
+
BAGGAGE_KEY_PAIR_SEPARATOR = "=";
|
|
2182
|
+
BAGGAGE_PROPERTIES_SEPARATOR = ";";
|
|
2183
|
+
BAGGAGE_ITEMS_SEPARATOR = ",";
|
|
2184
|
+
}
|
|
2185
|
+
});
|
|
2186
|
+
|
|
2187
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/baggage/utils.js
|
|
2188
|
+
function parsePairKeyValue(entry) {
|
|
2189
|
+
const valueProps = entry.split(BAGGAGE_PROPERTIES_SEPARATOR);
|
|
2190
|
+
if (valueProps.length <= 0)
|
|
2191
|
+
return;
|
|
2192
|
+
const keyPairPart = valueProps.shift();
|
|
2193
|
+
if (!keyPairPart)
|
|
2194
|
+
return;
|
|
2195
|
+
const separatorIndex = keyPairPart.indexOf(BAGGAGE_KEY_PAIR_SEPARATOR);
|
|
2196
|
+
if (separatorIndex <= 0)
|
|
2197
|
+
return;
|
|
2198
|
+
const key = decodeURIComponent(keyPairPart.substring(0, separatorIndex).trim());
|
|
2199
|
+
const value = decodeURIComponent(keyPairPart.substring(separatorIndex + 1).trim());
|
|
2200
|
+
let metadata;
|
|
2201
|
+
if (valueProps.length > 0) {
|
|
2202
|
+
metadata = _chunkCDBUTZMHjs.baggageEntryMetadataFromString.call(void 0, valueProps.join(BAGGAGE_PROPERTIES_SEPARATOR));
|
|
2203
|
+
}
|
|
2204
|
+
return { key, value, metadata };
|
|
2205
|
+
}
|
|
2206
|
+
function parseKeyPairsIntoRecord(value) {
|
|
2207
|
+
if (typeof value !== "string" || value.length === 0)
|
|
2208
|
+
return {};
|
|
2209
|
+
return value.split(BAGGAGE_ITEMS_SEPARATOR).map((entry) => {
|
|
2210
|
+
return parsePairKeyValue(entry);
|
|
2211
|
+
}).filter((keyPair) => keyPair !== void 0 && keyPair.value.length > 0).reduce((headers, keyPair) => {
|
|
2212
|
+
headers[keyPair.key] = keyPair.value;
|
|
2213
|
+
return headers;
|
|
2214
|
+
}, {});
|
|
2215
|
+
}
|
|
2216
|
+
var init_utils2 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2217
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/baggage/utils.js"() {
|
|
2218
|
+
"use strict";
|
|
2219
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
2220
|
+
init_constants();
|
|
2221
|
+
}
|
|
2222
|
+
});
|
|
2223
|
+
|
|
2224
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/common/time.js
|
|
2225
|
+
function hrTimeToNanoseconds2(time) {
|
|
2226
|
+
return time[0] * SECOND_TO_NANOSECONDS2 + time[1];
|
|
2227
|
+
}
|
|
2228
|
+
var NANOSECOND_DIGITS2, NANOSECOND_DIGITS_IN_MILLIS2, MILLISECONDS_TO_NANOSECONDS2, SECOND_TO_NANOSECONDS2;
|
|
2229
|
+
var init_time2 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2230
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/common/time.js"() {
|
|
2231
|
+
"use strict";
|
|
2232
|
+
NANOSECOND_DIGITS2 = 9;
|
|
2233
|
+
NANOSECOND_DIGITS_IN_MILLIS2 = 6;
|
|
2234
|
+
MILLISECONDS_TO_NANOSECONDS2 = Math.pow(10, NANOSECOND_DIGITS_IN_MILLIS2);
|
|
2235
|
+
SECOND_TO_NANOSECONDS2 = Math.pow(10, NANOSECOND_DIGITS2);
|
|
2236
|
+
}
|
|
2237
|
+
});
|
|
2238
|
+
|
|
2239
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/ExportResult.js
|
|
2240
|
+
var ExportResultCode2;
|
|
2241
|
+
var init_ExportResult2 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2242
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/ExportResult.js"() {
|
|
2243
|
+
"use strict";
|
|
2244
|
+
(function(ExportResultCode3) {
|
|
2245
|
+
ExportResultCode3[ExportResultCode3["SUCCESS"] = 0] = "SUCCESS";
|
|
2246
|
+
ExportResultCode3[ExportResultCode3["FAILED"] = 1] = "FAILED";
|
|
2247
|
+
})(ExportResultCode2 || (ExportResultCode2 = {}));
|
|
2248
|
+
}
|
|
2249
|
+
});
|
|
2250
|
+
|
|
2251
|
+
// ../../node_modules/.pnpm/@opentelemetry+core@2.0.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/index.js
|
|
2252
|
+
var init_esm6 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2253
|
+
"../../node_modules/.pnpm/@opentelemetry+core@2.0.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/index.js"() {
|
|
2254
|
+
"use strict";
|
|
2255
|
+
init_time2();
|
|
2256
|
+
init_ExportResult2();
|
|
2257
|
+
init_utils2();
|
|
2258
|
+
}
|
|
2259
|
+
});
|
|
2260
|
+
|
|
2261
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js
|
|
2231
2262
|
function isPartialSuccessResponse(response) {
|
|
2232
2263
|
return Object.prototype.hasOwnProperty.call(response, "partialSuccess");
|
|
2233
2264
|
}
|
|
@@ -2237,29 +2268,29 @@ function createLoggingPartialSuccessResponseHandler() {
|
|
|
2237
2268
|
if (response == null || !isPartialSuccessResponse(response) || response.partialSuccess == null || Object.keys(response.partialSuccess).length === 0) {
|
|
2238
2269
|
return;
|
|
2239
2270
|
}
|
|
2240
|
-
|
|
2271
|
+
_chunkCDBUTZMHjs.diag.warn("Received Partial Success response:", JSON.stringify(response.partialSuccess));
|
|
2241
2272
|
}
|
|
2242
2273
|
};
|
|
2243
2274
|
}
|
|
2244
|
-
var init_logging_response_handler =
|
|
2245
|
-
"
|
|
2275
|
+
var init_logging_response_handler = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2276
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js"() {
|
|
2246
2277
|
"use strict";
|
|
2247
|
-
|
|
2278
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
2248
2279
|
}
|
|
2249
2280
|
});
|
|
2250
2281
|
|
|
2251
|
-
//
|
|
2282
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js
|
|
2252
2283
|
function createOtlpExportDelegate(components, settings) {
|
|
2253
2284
|
return new OTLPExportDelegate(components.transport, components.serializer, createLoggingPartialSuccessResponseHandler(), components.promiseHandler, settings.timeout);
|
|
2254
2285
|
}
|
|
2255
2286
|
var OTLPExportDelegate;
|
|
2256
|
-
var init_otlp_export_delegate =
|
|
2257
|
-
"
|
|
2287
|
+
var init_otlp_export_delegate = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2288
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js"() {
|
|
2258
2289
|
"use strict";
|
|
2259
|
-
|
|
2290
|
+
init_esm6();
|
|
2260
2291
|
init_types();
|
|
2261
2292
|
init_logging_response_handler();
|
|
2262
|
-
|
|
2293
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
2263
2294
|
OTLPExportDelegate = class {
|
|
2264
2295
|
|
|
2265
2296
|
|
|
@@ -2273,7 +2304,7 @@ var init_otlp_export_delegate = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2273
2304
|
this._responseHandler = _responseHandler;
|
|
2274
2305
|
this._promiseQueue = _promiseQueue;
|
|
2275
2306
|
this._timeout = _timeout;
|
|
2276
|
-
this._diagLogger =
|
|
2307
|
+
this._diagLogger = _chunkCDBUTZMHjs.diag.createComponentLogger({
|
|
2277
2308
|
namespace: "OTLPExportDelegate"
|
|
2278
2309
|
});
|
|
2279
2310
|
}
|
|
@@ -2281,7 +2312,7 @@ var init_otlp_export_delegate = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2281
2312
|
this._diagLogger.debug("items to be sent", internalRepresentation);
|
|
2282
2313
|
if (this._promiseQueue.hasReachedLimit()) {
|
|
2283
2314
|
resultCallback({
|
|
2284
|
-
code:
|
|
2315
|
+
code: ExportResultCode2.FAILED,
|
|
2285
2316
|
error: new Error("Concurrent export limit reached")
|
|
2286
2317
|
});
|
|
2287
2318
|
return;
|
|
@@ -2289,7 +2320,7 @@ var init_otlp_export_delegate = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2289
2320
|
const serializedRequest = this._serializer.serializeRequest(internalRepresentation);
|
|
2290
2321
|
if (serializedRequest == null) {
|
|
2291
2322
|
resultCallback({
|
|
2292
|
-
code:
|
|
2323
|
+
code: ExportResultCode2.FAILED,
|
|
2293
2324
|
error: new Error("Nothing to send")
|
|
2294
2325
|
});
|
|
2295
2326
|
return;
|
|
@@ -2304,28 +2335,28 @@ var init_otlp_export_delegate = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2304
2335
|
}
|
|
2305
2336
|
}
|
|
2306
2337
|
resultCallback({
|
|
2307
|
-
code:
|
|
2338
|
+
code: ExportResultCode2.SUCCESS
|
|
2308
2339
|
});
|
|
2309
2340
|
return;
|
|
2310
2341
|
} else if (response.status === "failure" && response.error) {
|
|
2311
2342
|
resultCallback({
|
|
2312
|
-
code:
|
|
2343
|
+
code: ExportResultCode2.FAILED,
|
|
2313
2344
|
error: response.error
|
|
2314
2345
|
});
|
|
2315
2346
|
return;
|
|
2316
2347
|
} else if (response.status === "retryable") {
|
|
2317
2348
|
resultCallback({
|
|
2318
|
-
code:
|
|
2349
|
+
code: ExportResultCode2.FAILED,
|
|
2319
2350
|
error: new OTLPExporterError("Export failed with retryable status")
|
|
2320
2351
|
});
|
|
2321
2352
|
} else {
|
|
2322
2353
|
resultCallback({
|
|
2323
|
-
code:
|
|
2354
|
+
code: ExportResultCode2.FAILED,
|
|
2324
2355
|
error: new OTLPExporterError("Export failed with unknown error")
|
|
2325
2356
|
});
|
|
2326
2357
|
}
|
|
2327
2358
|
}, (reason) => resultCallback({
|
|
2328
|
-
code:
|
|
2359
|
+
code: ExportResultCode2.FAILED,
|
|
2329
2360
|
error: reason
|
|
2330
2361
|
})));
|
|
2331
2362
|
}
|
|
@@ -2341,24 +2372,24 @@ var init_otlp_export_delegate = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2341
2372
|
}
|
|
2342
2373
|
});
|
|
2343
2374
|
|
|
2344
|
-
//
|
|
2345
|
-
var
|
|
2346
|
-
"
|
|
2375
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/index.js
|
|
2376
|
+
var init_esm7 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2377
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/index.js"() {
|
|
2347
2378
|
"use strict";
|
|
2348
2379
|
init_OTLPExporterBase();
|
|
2349
2380
|
}
|
|
2350
2381
|
});
|
|
2351
2382
|
|
|
2352
|
-
//
|
|
2383
|
+
// ../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/version.js
|
|
2353
2384
|
var VERSION2;
|
|
2354
|
-
var init_version2 =
|
|
2355
|
-
"
|
|
2385
|
+
var init_version2 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2386
|
+
"../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/version.js"() {
|
|
2356
2387
|
"use strict";
|
|
2357
|
-
VERSION2 = "0.
|
|
2388
|
+
VERSION2 = "0.200.0";
|
|
2358
2389
|
}
|
|
2359
2390
|
});
|
|
2360
2391
|
|
|
2361
|
-
//
|
|
2392
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/common/hex-to-binary.js
|
|
2362
2393
|
function intValue(charCode) {
|
|
2363
2394
|
if (charCode >= 48 && charCode <= 57) {
|
|
2364
2395
|
return charCode - 48;
|
|
@@ -2378,28 +2409,28 @@ function hexToBinary(hexStr) {
|
|
|
2378
2409
|
}
|
|
2379
2410
|
return buf;
|
|
2380
2411
|
}
|
|
2381
|
-
var init_hex_to_binary =
|
|
2382
|
-
"
|
|
2412
|
+
var init_hex_to_binary = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2413
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/common/hex-to-binary.js"() {
|
|
2383
2414
|
"use strict";
|
|
2384
2415
|
}
|
|
2385
2416
|
});
|
|
2386
2417
|
|
|
2387
|
-
//
|
|
2388
|
-
function hrTimeToNanos(
|
|
2418
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js
|
|
2419
|
+
function hrTimeToNanos(hrTime3) {
|
|
2389
2420
|
const NANOSECONDS = BigInt(1e9);
|
|
2390
|
-
return BigInt(
|
|
2421
|
+
return BigInt(hrTime3[0]) * NANOSECONDS + BigInt(hrTime3[1]);
|
|
2391
2422
|
}
|
|
2392
2423
|
function toLongBits(value) {
|
|
2393
2424
|
const low = Number(BigInt.asUintN(32, value));
|
|
2394
2425
|
const high = Number(BigInt.asUintN(32, value >> BigInt(32)));
|
|
2395
2426
|
return { low, high };
|
|
2396
2427
|
}
|
|
2397
|
-
function encodeAsLongBits(
|
|
2398
|
-
const nanos = hrTimeToNanos(
|
|
2428
|
+
function encodeAsLongBits(hrTime3) {
|
|
2429
|
+
const nanos = hrTimeToNanos(hrTime3);
|
|
2399
2430
|
return toLongBits(nanos);
|
|
2400
2431
|
}
|
|
2401
|
-
function encodeAsString(
|
|
2402
|
-
const nanos = hrTimeToNanos(
|
|
2432
|
+
function encodeAsString(hrTime3) {
|
|
2433
|
+
const nanos = hrTimeToNanos(hrTime3);
|
|
2403
2434
|
return nanos.toString();
|
|
2404
2435
|
}
|
|
2405
2436
|
function identity(value) {
|
|
@@ -2423,12 +2454,12 @@ function getOtlpEncoder(options) {
|
|
|
2423
2454
|
};
|
|
2424
2455
|
}
|
|
2425
2456
|
var encodeTimestamp, DEFAULT_ENCODER;
|
|
2426
|
-
var init_utils3 =
|
|
2427
|
-
"
|
|
2457
|
+
var init_utils3 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2458
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js"() {
|
|
2428
2459
|
"use strict";
|
|
2429
|
-
|
|
2460
|
+
init_esm6();
|
|
2430
2461
|
init_hex_to_binary();
|
|
2431
|
-
encodeTimestamp = typeof BigInt !== "undefined" ? encodeAsString :
|
|
2462
|
+
encodeTimestamp = typeof BigInt !== "undefined" ? encodeAsString : hrTimeToNanoseconds2;
|
|
2432
2463
|
DEFAULT_ENCODER = {
|
|
2433
2464
|
encodeHrTime: encodeAsLongBits,
|
|
2434
2465
|
encodeSpanContext: hexToBinary,
|
|
@@ -2437,7 +2468,7 @@ var init_utils3 = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2437
2468
|
}
|
|
2438
2469
|
});
|
|
2439
2470
|
|
|
2440
|
-
//
|
|
2471
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js
|
|
2441
2472
|
function createResource(resource) {
|
|
2442
2473
|
return {
|
|
2443
2474
|
attributes: toAttributes(resource.attributes),
|
|
@@ -2482,13 +2513,13 @@ function toAnyValue(value) {
|
|
|
2482
2513
|
};
|
|
2483
2514
|
return {};
|
|
2484
2515
|
}
|
|
2485
|
-
var init_internal =
|
|
2486
|
-
"
|
|
2516
|
+
var init_internal = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2517
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js"() {
|
|
2487
2518
|
"use strict";
|
|
2488
2519
|
}
|
|
2489
2520
|
});
|
|
2490
2521
|
|
|
2491
|
-
//
|
|
2522
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js
|
|
2492
2523
|
function sdkSpanToOtlpSpan(span, encoder) {
|
|
2493
2524
|
const ctx = span.spanContext();
|
|
2494
2525
|
const status = span.status;
|
|
@@ -2589,18 +2620,18 @@ function spanRecordsToResourceSpans(readableSpans, encoder) {
|
|
|
2589
2620
|
}
|
|
2590
2621
|
return out;
|
|
2591
2622
|
}
|
|
2592
|
-
var init_internal2 =
|
|
2593
|
-
"
|
|
2623
|
+
var init_internal2 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2624
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js"() {
|
|
2594
2625
|
"use strict";
|
|
2595
2626
|
init_internal();
|
|
2596
2627
|
init_utils3();
|
|
2597
2628
|
}
|
|
2598
2629
|
});
|
|
2599
2630
|
|
|
2600
|
-
//
|
|
2631
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js
|
|
2601
2632
|
var JsonTraceSerializer;
|
|
2602
|
-
var init_trace2 =
|
|
2603
|
-
"
|
|
2633
|
+
var init_trace2 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2634
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js"() {
|
|
2604
2635
|
"use strict";
|
|
2605
2636
|
init_internal2();
|
|
2606
2637
|
JsonTraceSerializer = {
|
|
@@ -2613,9 +2644,6 @@ var init_trace2 = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2613
2644
|
return encoder.encode(JSON.stringify(request3));
|
|
2614
2645
|
},
|
|
2615
2646
|
deserializeResponse: (arg) => {
|
|
2616
|
-
if (arg.length === 0) {
|
|
2617
|
-
return {};
|
|
2618
|
-
}
|
|
2619
2647
|
const decoder = new TextDecoder();
|
|
2620
2648
|
return JSON.parse(decoder.decode(arg));
|
|
2621
2649
|
}
|
|
@@ -2623,23 +2651,23 @@ var init_trace2 = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2623
2651
|
}
|
|
2624
2652
|
});
|
|
2625
2653
|
|
|
2626
|
-
//
|
|
2627
|
-
var init_json =
|
|
2628
|
-
"
|
|
2654
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/index.js
|
|
2655
|
+
var init_json = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2656
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/index.js"() {
|
|
2629
2657
|
"use strict";
|
|
2630
2658
|
init_trace2();
|
|
2631
2659
|
}
|
|
2632
2660
|
});
|
|
2633
2661
|
|
|
2634
|
-
//
|
|
2635
|
-
var
|
|
2636
|
-
"
|
|
2662
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/index.js
|
|
2663
|
+
var init_esm8 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2664
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/esm/index.js"() {
|
|
2637
2665
|
"use strict";
|
|
2638
2666
|
init_json();
|
|
2639
2667
|
}
|
|
2640
2668
|
});
|
|
2641
2669
|
|
|
2642
|
-
//
|
|
2670
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js
|
|
2643
2671
|
function isExportRetryable(statusCode) {
|
|
2644
2672
|
const retryCodes = [429, 502, 503, 504];
|
|
2645
2673
|
return retryCodes.includes(statusCode);
|
|
@@ -2658,15 +2686,15 @@ function parseRetryAfterToMills(retryAfter) {
|
|
|
2658
2686
|
}
|
|
2659
2687
|
return 0;
|
|
2660
2688
|
}
|
|
2661
|
-
var init_is_export_retryable =
|
|
2662
|
-
"
|
|
2689
|
+
var init_is_export_retryable = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2690
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js"() {
|
|
2663
2691
|
"use strict";
|
|
2664
2692
|
}
|
|
2665
2693
|
});
|
|
2666
2694
|
|
|
2667
|
-
//
|
|
2695
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/http-transport-utils.js
|
|
2668
2696
|
var http_transport_utils_exports = {};
|
|
2669
|
-
|
|
2697
|
+
_chunkCDBUTZMHjs.__export.call(void 0, http_transport_utils_exports, {
|
|
2670
2698
|
compressAndSend: () => compressAndSend,
|
|
2671
2699
|
createHttpAgent: () => createHttpAgent,
|
|
2672
2700
|
sendWithHttp: () => sendWithHttp
|
|
@@ -2677,6 +2705,7 @@ var _zlib = require('zlib'); var zlib2 = _interopRequireWildcard(_zlib); var zli
|
|
|
2677
2705
|
var _stream = require('stream');
|
|
2678
2706
|
function sendWithHttp(params, agent, data, onDone, timeoutMillis) {
|
|
2679
2707
|
const parsedUrl = new URL(params.url);
|
|
2708
|
+
const nodeVersion = Number(process.versions.node.split(".")[0]);
|
|
2680
2709
|
const options = {
|
|
2681
2710
|
hostname: parsedUrl.hostname,
|
|
2682
2711
|
port: parsedUrl.port,
|
|
@@ -2724,6 +2753,13 @@ function sendWithHttp(params, agent, data, onDone, timeoutMillis) {
|
|
|
2724
2753
|
error: error2
|
|
2725
2754
|
});
|
|
2726
2755
|
});
|
|
2756
|
+
const reportTimeoutErrorEvent = nodeVersion >= 14 ? "close" : "abort";
|
|
2757
|
+
req.on(reportTimeoutErrorEvent, () => {
|
|
2758
|
+
onDone({
|
|
2759
|
+
status: "failure",
|
|
2760
|
+
error: new Error("Request timed out")
|
|
2761
|
+
});
|
|
2762
|
+
});
|
|
2727
2763
|
compressAndSend(req, params.compression, data, (error2) => {
|
|
2728
2764
|
onDone({
|
|
2729
2765
|
status: "failure",
|
|
@@ -2750,21 +2786,21 @@ function createHttpAgent(rawUrl, agentOptions) {
|
|
|
2750
2786
|
const Agent3 = parsedUrl.protocol === "http:" ? http.Agent : https.Agent;
|
|
2751
2787
|
return new Agent3(agentOptions);
|
|
2752
2788
|
}
|
|
2753
|
-
var init_http_transport_utils =
|
|
2754
|
-
"
|
|
2789
|
+
var init_http_transport_utils = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2790
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/http-transport-utils.js"() {
|
|
2755
2791
|
"use strict";
|
|
2756
2792
|
init_is_export_retryable();
|
|
2757
2793
|
init_types();
|
|
2758
2794
|
}
|
|
2759
2795
|
});
|
|
2760
2796
|
|
|
2761
|
-
//
|
|
2797
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/http-exporter-transport.js
|
|
2762
2798
|
function createHttpExporterTransport(parameters) {
|
|
2763
2799
|
return new HttpExporterTransport(parameters);
|
|
2764
2800
|
}
|
|
2765
2801
|
var HttpExporterTransport;
|
|
2766
|
-
var init_http_exporter_transport =
|
|
2767
|
-
"
|
|
2802
|
+
var init_http_exporter_transport = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2803
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/http-exporter-transport.js"() {
|
|
2768
2804
|
"use strict";
|
|
2769
2805
|
HttpExporterTransport = (_class10 = class {
|
|
2770
2806
|
|
|
@@ -2788,8 +2824,8 @@ var init_http_exporter_transport = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2788
2824
|
const {
|
|
2789
2825
|
sendWithHttp: sendWithHttp2,
|
|
2790
2826
|
createHttpAgent: createHttpAgent2
|
|
2791
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
|
2792
|
-
} = (init_http_transport_utils(),
|
|
2827
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
2828
|
+
} = (init_http_transport_utils(), _chunkCDBUTZMHjs.__toCommonJS.call(void 0, http_transport_utils_exports));
|
|
2793
2829
|
utils = this._utils = {
|
|
2794
2830
|
agent: createHttpAgent2(this._parameters.url, this._parameters.agentOptions),
|
|
2795
2831
|
send: sendWithHttp2
|
|
@@ -2801,7 +2837,7 @@ var init_http_exporter_transport = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2801
2837
|
}
|
|
2802
2838
|
});
|
|
2803
2839
|
|
|
2804
|
-
//
|
|
2840
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js
|
|
2805
2841
|
function getJitter() {
|
|
2806
2842
|
return Math.random() * (2 * JITTER) - JITTER;
|
|
2807
2843
|
}
|
|
@@ -2809,8 +2845,8 @@ function createRetryingTransport(options) {
|
|
|
2809
2845
|
return new RetryingTransport(options.transport);
|
|
2810
2846
|
}
|
|
2811
2847
|
var MAX_ATTEMPTS, INITIAL_BACKOFF, MAX_BACKOFF, BACKOFF_MULTIPLIER, JITTER, RetryingTransport;
|
|
2812
|
-
var init_retrying_transport =
|
|
2813
|
-
"
|
|
2848
|
+
var init_retrying_transport = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2849
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js"() {
|
|
2814
2850
|
"use strict";
|
|
2815
2851
|
MAX_ATTEMPTS = 5;
|
|
2816
2852
|
INITIAL_BACKOFF = 1e3;
|
|
@@ -2854,7 +2890,7 @@ var init_retrying_transport = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2854
2890
|
}
|
|
2855
2891
|
});
|
|
2856
2892
|
|
|
2857
|
-
//
|
|
2893
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-http-export-delegate.js
|
|
2858
2894
|
function createOtlpHttpExportDelegate(options, serializer) {
|
|
2859
2895
|
return createOtlpExportDelegate({
|
|
2860
2896
|
transport: createRetryingTransport({
|
|
@@ -2864,8 +2900,8 @@ function createOtlpHttpExportDelegate(options, serializer) {
|
|
|
2864
2900
|
promiseHandler: createBoundedQueueExportPromiseHandler(options)
|
|
2865
2901
|
}, { timeout: options.timeoutMillis });
|
|
2866
2902
|
}
|
|
2867
|
-
var init_otlp_http_export_delegate =
|
|
2868
|
-
"
|
|
2903
|
+
var init_otlp_http_export_delegate = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2904
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-http-export-delegate.js"() {
|
|
2869
2905
|
"use strict";
|
|
2870
2906
|
init_otlp_export_delegate();
|
|
2871
2907
|
init_http_exporter_transport();
|
|
@@ -2874,7 +2910,7 @@ var init_otlp_http_export_delegate = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
2874
2910
|
}
|
|
2875
2911
|
});
|
|
2876
2912
|
|
|
2877
|
-
//
|
|
2913
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-env-configuration.js
|
|
2878
2914
|
function parseAndValidateTimeoutFromEnv(timeoutEnvVar) {
|
|
2879
2915
|
const envTimeout = _optionalChain([process, 'access', _39 => _39.env, 'access', _40 => _40[timeoutEnvVar], 'optionalAccess', _41 => _41.trim, 'call', _42 => _42()]);
|
|
2880
2916
|
if (envTimeout != null && envTimeout !== "") {
|
|
@@ -2882,7 +2918,7 @@ function parseAndValidateTimeoutFromEnv(timeoutEnvVar) {
|
|
|
2882
2918
|
if (Number.isFinite(definedTimeout) && definedTimeout > 0) {
|
|
2883
2919
|
return definedTimeout;
|
|
2884
2920
|
}
|
|
2885
|
-
|
|
2921
|
+
_chunkCDBUTZMHjs.diag.warn(`Configuration: ${timeoutEnvVar} is invalid, expected number greater than 0 (actual: ${envTimeout})`);
|
|
2886
2922
|
}
|
|
2887
2923
|
return void 0;
|
|
2888
2924
|
}
|
|
@@ -2899,7 +2935,7 @@ function parseAndValidateCompressionFromEnv(compressionEnvVar) {
|
|
|
2899
2935
|
if (compression == null || compression === "none" || compression === "gzip") {
|
|
2900
2936
|
return compression;
|
|
2901
2937
|
}
|
|
2902
|
-
|
|
2938
|
+
_chunkCDBUTZMHjs.diag.warn(`Configuration: ${compressionEnvVar} is invalid, expected 'none' or 'gzip' (actual: '${compression}')`);
|
|
2903
2939
|
return void 0;
|
|
2904
2940
|
}
|
|
2905
2941
|
function getCompressionFromEnv(signalIdentifier) {
|
|
@@ -2913,14 +2949,14 @@ function getSharedConfigurationFromEnvironment(signalIdentifier) {
|
|
|
2913
2949
|
compression: getCompressionFromEnv(signalIdentifier)
|
|
2914
2950
|
};
|
|
2915
2951
|
}
|
|
2916
|
-
var init_shared_env_configuration =
|
|
2917
|
-
"
|
|
2952
|
+
var init_shared_env_configuration = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2953
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-env-configuration.js"() {
|
|
2918
2954
|
"use strict";
|
|
2919
|
-
|
|
2955
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
2920
2956
|
}
|
|
2921
2957
|
});
|
|
2922
2958
|
|
|
2923
|
-
//
|
|
2959
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js
|
|
2924
2960
|
function validateAndNormalizeHeaders(partialHeaders) {
|
|
2925
2961
|
return () => {
|
|
2926
2962
|
const headers = {};
|
|
@@ -2928,20 +2964,20 @@ function validateAndNormalizeHeaders(partialHeaders) {
|
|
|
2928
2964
|
if (typeof value !== "undefined") {
|
|
2929
2965
|
headers[key] = String(value);
|
|
2930
2966
|
} else {
|
|
2931
|
-
|
|
2967
|
+
_chunkCDBUTZMHjs.diag.warn(`Header "${key}" has invalid value (${value}) and will be ignored`);
|
|
2932
2968
|
}
|
|
2933
2969
|
});
|
|
2934
2970
|
return headers;
|
|
2935
2971
|
};
|
|
2936
2972
|
}
|
|
2937
|
-
var init_util =
|
|
2938
|
-
"
|
|
2973
|
+
var init_util = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
2974
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js"() {
|
|
2939
2975
|
"use strict";
|
|
2940
|
-
|
|
2976
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
2941
2977
|
}
|
|
2942
2978
|
});
|
|
2943
2979
|
|
|
2944
|
-
//
|
|
2980
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js
|
|
2945
2981
|
function mergeHeaders(userProvidedHeaders, fallbackHeaders, defaultHeaders) {
|
|
2946
2982
|
const requiredHeaders = {
|
|
2947
2983
|
...defaultHeaders()
|
|
@@ -2964,7 +3000,7 @@ function validateUserProvidedUrl(url) {
|
|
|
2964
3000
|
try {
|
|
2965
3001
|
new URL(url);
|
|
2966
3002
|
return url;
|
|
2967
|
-
} catch (
|
|
3003
|
+
} catch (e) {
|
|
2968
3004
|
throw new Error(`Configuration: Could not parse user-provided export URL: '${url}'`);
|
|
2969
3005
|
}
|
|
2970
3006
|
}
|
|
@@ -2984,15 +3020,15 @@ function getHttpConfigurationDefaults(requiredHeaders, signalResourcePath) {
|
|
|
2984
3020
|
agentOptions: { keepAlive: true }
|
|
2985
3021
|
};
|
|
2986
3022
|
}
|
|
2987
|
-
var init_otlp_http_configuration =
|
|
2988
|
-
"
|
|
3023
|
+
var init_otlp_http_configuration = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
3024
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js"() {
|
|
2989
3025
|
"use strict";
|
|
2990
3026
|
init_shared_configuration();
|
|
2991
3027
|
init_util();
|
|
2992
3028
|
}
|
|
2993
3029
|
});
|
|
2994
3030
|
|
|
2995
|
-
//
|
|
3031
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-env-configuration.js
|
|
2996
3032
|
function getStaticHeadersFromEnv(signalIdentifier) {
|
|
2997
3033
|
const signalSpecificRawHeaders = _optionalChain([process, 'access', _48 => _48.env, 'access', _49 => _49[`OTEL_EXPORTER_OTLP_${signalIdentifier}_HEADERS`], 'optionalAccess', _50 => _50.trim, 'call', _51 => _51()]);
|
|
2998
3034
|
const nonSignalSpecificRawHeaders = _optionalChain([process, 'access', _52 => _52.env, 'access', _53 => _53["OTEL_EXPORTER_OTLP_HEADERS"], 'optionalAccess', _54 => _54.trim, 'call', _55 => _55()]);
|
|
@@ -3007,16 +3043,16 @@ function appendRootPathToUrlIfNeeded(url) {
|
|
|
3007
3043
|
try {
|
|
3008
3044
|
const parsedUrl = new URL(url);
|
|
3009
3045
|
return parsedUrl.toString();
|
|
3010
|
-
} catch (
|
|
3011
|
-
|
|
3046
|
+
} catch (e3) {
|
|
3047
|
+
_chunkCDBUTZMHjs.diag.warn(`Configuration: Could not parse environment-provided export URL: '${url}', falling back to undefined`);
|
|
3012
3048
|
return void 0;
|
|
3013
3049
|
}
|
|
3014
3050
|
}
|
|
3015
3051
|
function appendResourcePathToUrl(url, path3) {
|
|
3016
3052
|
try {
|
|
3017
3053
|
new URL(url);
|
|
3018
|
-
} catch (
|
|
3019
|
-
|
|
3054
|
+
} catch (e4) {
|
|
3055
|
+
_chunkCDBUTZMHjs.diag.warn(`Configuration: Could not parse environment-provided export URL: '${url}', falling back to undefined`);
|
|
3020
3056
|
return void 0;
|
|
3021
3057
|
}
|
|
3022
3058
|
if (!url.endsWith("/")) {
|
|
@@ -3025,8 +3061,8 @@ function appendResourcePathToUrl(url, path3) {
|
|
|
3025
3061
|
url += path3;
|
|
3026
3062
|
try {
|
|
3027
3063
|
new URL(url);
|
|
3028
|
-
} catch (
|
|
3029
|
-
|
|
3064
|
+
} catch (e5) {
|
|
3065
|
+
_chunkCDBUTZMHjs.diag.warn(`Configuration: Provided URL appended with '${path3}' is not a valid URL, using 'undefined' instead of '${url}'`);
|
|
3030
3066
|
return void 0;
|
|
3031
3067
|
}
|
|
3032
3068
|
return url;
|
|
@@ -3052,17 +3088,17 @@ function getHttpConfigurationFromEnvironment(signalIdentifier, signalResourcePat
|
|
|
3052
3088
|
headers: wrapStaticHeadersInFunction(getStaticHeadersFromEnv(signalIdentifier))
|
|
3053
3089
|
};
|
|
3054
3090
|
}
|
|
3055
|
-
var init_otlp_http_env_configuration =
|
|
3056
|
-
"
|
|
3091
|
+
var init_otlp_http_env_configuration = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
3092
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-env-configuration.js"() {
|
|
3057
3093
|
"use strict";
|
|
3058
|
-
|
|
3059
|
-
|
|
3094
|
+
init_esm6();
|
|
3095
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
3060
3096
|
init_shared_env_configuration();
|
|
3061
3097
|
init_shared_configuration();
|
|
3062
3098
|
}
|
|
3063
3099
|
});
|
|
3064
3100
|
|
|
3065
|
-
//
|
|
3101
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-node-http-options.js
|
|
3066
3102
|
function convertLegacyAgentOptions(config) {
|
|
3067
3103
|
if (_optionalChain([config, 'optionalAccess', _64 => _64.keepAlive]) != null) {
|
|
3068
3104
|
if (config.httpAgentOptions != null) {
|
|
@@ -3079,7 +3115,7 @@ function convertLegacyAgentOptions(config) {
|
|
|
3079
3115
|
}
|
|
3080
3116
|
function convertLegacyHttpOptions(config, signalIdentifier, signalResourcePath, requiredHeaders) {
|
|
3081
3117
|
if (config.metadata) {
|
|
3082
|
-
|
|
3118
|
+
_chunkCDBUTZMHjs.diag.warn("Metadata cannot be set when using http");
|
|
3083
3119
|
}
|
|
3084
3120
|
return mergeOtlpHttpConfigurationWithDefaults({
|
|
3085
3121
|
url: config.url,
|
|
@@ -3090,33 +3126,33 @@ function convertLegacyHttpOptions(config, signalIdentifier, signalResourcePath,
|
|
|
3090
3126
|
agentOptions: convertLegacyAgentOptions(config)
|
|
3091
3127
|
}, getHttpConfigurationFromEnvironment(signalIdentifier, signalResourcePath), getHttpConfigurationDefaults(requiredHeaders, signalResourcePath));
|
|
3092
3128
|
}
|
|
3093
|
-
var init_convert_legacy_node_http_options =
|
|
3094
|
-
"
|
|
3129
|
+
var init_convert_legacy_node_http_options = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
3130
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-node-http-options.js"() {
|
|
3095
3131
|
"use strict";
|
|
3096
3132
|
init_otlp_http_configuration();
|
|
3097
3133
|
init_otlp_http_env_configuration();
|
|
3098
|
-
|
|
3134
|
+
_chunkCDBUTZMHjs.init_esm.call(void 0, );
|
|
3099
3135
|
init_shared_configuration();
|
|
3100
3136
|
}
|
|
3101
3137
|
});
|
|
3102
3138
|
|
|
3103
|
-
//
|
|
3104
|
-
var init_index_node_http =
|
|
3105
|
-
"
|
|
3139
|
+
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/index-node-http.js
|
|
3140
|
+
var init_index_node_http = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
3141
|
+
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/esm/index-node-http.js"() {
|
|
3106
3142
|
"use strict";
|
|
3107
3143
|
init_otlp_http_export_delegate();
|
|
3108
3144
|
init_convert_legacy_node_http_options();
|
|
3109
3145
|
}
|
|
3110
3146
|
});
|
|
3111
3147
|
|
|
3112
|
-
//
|
|
3148
|
+
// ../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/node/OTLPTraceExporter.js
|
|
3113
3149
|
var OTLPTraceExporter;
|
|
3114
|
-
var init_OTLPTraceExporter =
|
|
3115
|
-
"
|
|
3150
|
+
var init_OTLPTraceExporter = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
3151
|
+
"../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/node/OTLPTraceExporter.js"() {
|
|
3116
3152
|
"use strict";
|
|
3117
|
-
init_esm6();
|
|
3118
|
-
init_version2();
|
|
3119
3153
|
init_esm7();
|
|
3154
|
+
init_version2();
|
|
3155
|
+
init_esm8();
|
|
3120
3156
|
init_index_node_http();
|
|
3121
3157
|
OTLPTraceExporter = class extends OTLPExporterBase {
|
|
3122
3158
|
constructor(config = {}) {
|
|
@@ -3129,29 +3165,29 @@ var init_OTLPTraceExporter = _chunkWEZHHYVUjs.__esm.call(void 0, {
|
|
|
3129
3165
|
}
|
|
3130
3166
|
});
|
|
3131
3167
|
|
|
3132
|
-
//
|
|
3133
|
-
var init_node4 =
|
|
3134
|
-
"
|
|
3168
|
+
// ../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/node/index.js
|
|
3169
|
+
var init_node4 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
3170
|
+
"../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/node/index.js"() {
|
|
3135
3171
|
"use strict";
|
|
3136
3172
|
init_OTLPTraceExporter();
|
|
3137
3173
|
}
|
|
3138
3174
|
});
|
|
3139
3175
|
|
|
3140
|
-
//
|
|
3141
|
-
var init_platform4 =
|
|
3142
|
-
"
|
|
3176
|
+
// ../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/index.js
|
|
3177
|
+
var init_platform4 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
3178
|
+
"../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/index.js"() {
|
|
3143
3179
|
"use strict";
|
|
3144
3180
|
init_node4();
|
|
3145
3181
|
}
|
|
3146
3182
|
});
|
|
3147
3183
|
|
|
3148
|
-
//
|
|
3184
|
+
// ../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/index.js
|
|
3149
3185
|
var esm_exports3 = {};
|
|
3150
|
-
|
|
3186
|
+
_chunkCDBUTZMHjs.__export.call(void 0, esm_exports3, {
|
|
3151
3187
|
OTLPTraceExporter: () => OTLPTraceExporter
|
|
3152
3188
|
});
|
|
3153
|
-
var
|
|
3154
|
-
"
|
|
3189
|
+
var init_esm9 = _chunkCDBUTZMHjs.__esm.call(void 0, {
|
|
3190
|
+
"../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.200.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/index.js"() {
|
|
3155
3191
|
"use strict";
|
|
3156
3192
|
init_platform4();
|
|
3157
3193
|
}
|
|
@@ -3232,7 +3268,7 @@ async function getBaseBranch(remote = void 0) {
|
|
|
3232
3268
|
throw new Error(`Could not find HEAD branch in remote ${remoteName}`);
|
|
3233
3269
|
}
|
|
3234
3270
|
branch = match[1];
|
|
3235
|
-
} catch (
|
|
3271
|
+
} catch (e6) {
|
|
3236
3272
|
branch = "main";
|
|
3237
3273
|
}
|
|
3238
3274
|
}
|
|
@@ -3259,7 +3295,7 @@ async function getBaseBranchAncestor(remote = void 0) {
|
|
|
3259
3295
|
return void 0;
|
|
3260
3296
|
}
|
|
3261
3297
|
}
|
|
3262
|
-
async function getPastNAncestors(n =
|
|
3298
|
+
async function getPastNAncestors(n = 1e3, remote = void 0) {
|
|
3263
3299
|
const git = await currentRepo();
|
|
3264
3300
|
if (git === null) {
|
|
3265
3301
|
return [];
|
|
@@ -3276,7 +3312,7 @@ async function getPastNAncestors(n = 10, remote = void 0) {
|
|
|
3276
3312
|
if (!ancestor) {
|
|
3277
3313
|
return [];
|
|
3278
3314
|
}
|
|
3279
|
-
const commits = await git.log({ from: ancestor, to: "HEAD" });
|
|
3315
|
+
const commits = await git.log({ from: ancestor, to: "HEAD", maxCount: n });
|
|
3280
3316
|
return commits.all.map((c) => c.hash);
|
|
3281
3317
|
}
|
|
3282
3318
|
async function attempt(fn) {
|
|
@@ -4154,7 +4190,7 @@ function getMustacheVars(prompt) {
|
|
|
4154
4190
|
return _mustache2.default.parse(prompt).filter(
|
|
4155
4191
|
(span) => span[0] === "name" || span[0] === "&"
|
|
4156
4192
|
);
|
|
4157
|
-
} catch (
|
|
4193
|
+
} catch (e7) {
|
|
4158
4194
|
return [];
|
|
4159
4195
|
}
|
|
4160
4196
|
}
|
|
@@ -7993,11 +8029,12 @@ function configureNode() {
|
|
|
7993
8029
|
|
|
7994
8030
|
// src/exports-node.ts
|
|
7995
8031
|
var exports_node_exports = {};
|
|
7996
|
-
|
|
8032
|
+
_chunkCDBUTZMHjs.__export.call(void 0, exports_node_exports, {
|
|
7997
8033
|
AISpanProcessor: () => AISpanProcessor,
|
|
7998
8034
|
Attachment: () => Attachment,
|
|
7999
8035
|
BaseAttachment: () => BaseAttachment,
|
|
8000
8036
|
BaseExperiment: () => BaseExperiment,
|
|
8037
|
+
BraintrustExporter: () => BraintrustExporter,
|
|
8001
8038
|
BraintrustSpanProcessor: () => BraintrustSpanProcessor,
|
|
8002
8039
|
BraintrustState: () => BraintrustState,
|
|
8003
8040
|
BraintrustStream: () => BraintrustStream,
|
|
@@ -8181,7 +8218,7 @@ function initFunction({
|
|
|
8181
8218
|
// src/framework.ts
|
|
8182
8219
|
|
|
8183
8220
|
|
|
8184
|
-
//
|
|
8221
|
+
// ../../node_modules/.pnpm/async@3.2.5/node_modules/async/dist/async.mjs
|
|
8185
8222
|
function initialParams(fn) {
|
|
8186
8223
|
return function(...args) {
|
|
8187
8224
|
var callback = args.pop();
|
|
@@ -9913,14 +9950,20 @@ async function runEvaluatorInternal(experiment, evaluator, progressReporter, fil
|
|
|
9913
9950
|
} else {
|
|
9914
9951
|
data = dataResult;
|
|
9915
9952
|
}
|
|
9916
|
-
|
|
9917
|
-
(datum) => [...Array(_nullishCoalesce(evaluator.trialCount, () => ( 1))).keys()].map(() =>
|
|
9953
|
+
const dataWithTrials = data.filter((d) => filters.every((f) => evaluateFilter(d, f))).flatMap(
|
|
9954
|
+
(datum) => [...Array(_nullishCoalesce(evaluator.trialCount, () => ( 1))).keys()].map((trialIndex) => ({
|
|
9955
|
+
datum,
|
|
9956
|
+
trialIndex
|
|
9957
|
+
}))
|
|
9918
9958
|
);
|
|
9919
|
-
progressReporter.start(evaluator.evalName,
|
|
9959
|
+
progressReporter.start(evaluator.evalName, dataWithTrials.length);
|
|
9920
9960
|
const results = [];
|
|
9921
9961
|
const q = queue(
|
|
9922
9962
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9923
|
-
async (
|
|
9963
|
+
async ({
|
|
9964
|
+
datum,
|
|
9965
|
+
trialIndex
|
|
9966
|
+
}) => {
|
|
9924
9967
|
const eventDataset = experiment ? experiment.dataset : Dataset.isDataset(evaluator.data) ? evaluator.data : void 0;
|
|
9925
9968
|
const baseEvent = {
|
|
9926
9969
|
name: "eval",
|
|
@@ -9969,7 +10012,8 @@ async function runEvaluatorInternal(experiment, evaluator, progressReporter, fil
|
|
|
9969
10012
|
name: evaluator.evalName,
|
|
9970
10013
|
object_type: "task"
|
|
9971
10014
|
})]);
|
|
9972
|
-
}
|
|
10015
|
+
},
|
|
10016
|
+
trialIndex
|
|
9973
10017
|
});
|
|
9974
10018
|
if (outputResult instanceof Promise) {
|
|
9975
10019
|
output = await outputResult;
|
|
@@ -10119,9 +10163,9 @@ async function runEvaluatorInternal(experiment, evaluator, progressReporter, fil
|
|
|
10119
10163
|
return await experiment.traced(callback, baseEvent);
|
|
10120
10164
|
}
|
|
10121
10165
|
},
|
|
10122
|
-
Math.max(_nullishCoalesce(evaluator.maxConcurrency, () => (
|
|
10166
|
+
Math.max(_nullishCoalesce(evaluator.maxConcurrency, () => ( dataWithTrials.length)), 1)
|
|
10123
10167
|
);
|
|
10124
|
-
q.push(
|
|
10168
|
+
q.push(dataWithTrials);
|
|
10125
10169
|
const cancel = async () => {
|
|
10126
10170
|
await new Promise((_, reject2) => {
|
|
10127
10171
|
if (evaluator.timeout) {
|
|
@@ -10264,7 +10308,7 @@ function formatMetricSummary(summary, longestMetricName) {
|
|
|
10264
10308
|
|
|
10265
10309
|
// src/graph-framework.ts
|
|
10266
10310
|
var graph_framework_exports = {};
|
|
10267
|
-
|
|
10311
|
+
_chunkCDBUTZMHjs.__export.call(void 0, graph_framework_exports, {
|
|
10268
10312
|
AggregatorNode: () => AggregatorNode,
|
|
10269
10313
|
GateNode: () => GateNode,
|
|
10270
10314
|
GraphBuilder: () => GraphBuilder,
|
|
@@ -11694,8 +11738,8 @@ var otelApi = null;
|
|
|
11694
11738
|
var otelSdk = null;
|
|
11695
11739
|
var OTEL_AVAILABLE = false;
|
|
11696
11740
|
try {
|
|
11697
|
-
otelApi = (
|
|
11698
|
-
otelSdk = (init_esm5(),
|
|
11741
|
+
otelApi = (_chunkCDBUTZMHjs.init_esm.call(void 0, ), _chunkCDBUTZMHjs.__toCommonJS.call(void 0, _chunkCDBUTZMHjs.esm_exports));
|
|
11742
|
+
otelSdk = (init_esm5(), _chunkCDBUTZMHjs.__toCommonJS.call(void 0, esm_exports2));
|
|
11699
11743
|
OTEL_AVAILABLE = true;
|
|
11700
11744
|
} catch (error2) {
|
|
11701
11745
|
console.warn(
|
|
@@ -11826,7 +11870,7 @@ var BraintrustSpanProcessor = class _BraintrustSpanProcessor {
|
|
|
11826
11870
|
try {
|
|
11827
11871
|
const {
|
|
11828
11872
|
OTLPTraceExporter: OTLPTraceExporter2
|
|
11829
|
-
} = (
|
|
11873
|
+
} = (init_esm9(), _chunkCDBUTZMHjs.__toCommonJS.call(void 0, esm_exports3));
|
|
11830
11874
|
const headers = {
|
|
11831
11875
|
Authorization: `Bearer ${apiKey}`,
|
|
11832
11876
|
"Content-Type": "application/json",
|
|
@@ -11868,6 +11912,51 @@ var BraintrustSpanProcessor = class _BraintrustSpanProcessor {
|
|
|
11868
11912
|
return this.aiSpanProcessor.forceFlush();
|
|
11869
11913
|
}
|
|
11870
11914
|
};
|
|
11915
|
+
var BraintrustExporter = (_class31 = class _BraintrustExporter {
|
|
11916
|
+
static checkOtelAvailable() {
|
|
11917
|
+
if (!OTEL_AVAILABLE) {
|
|
11918
|
+
throw new Error(
|
|
11919
|
+
"OpenTelemetry packages are not installed. Install them with: npm install @opentelemetry/api @opentelemetry/sdk-trace-base @opentelemetry/exporter-trace-otlp-http @opentelemetry/resources @opentelemetry/semantic-conventions"
|
|
11920
|
+
);
|
|
11921
|
+
}
|
|
11922
|
+
}
|
|
11923
|
+
|
|
11924
|
+
__init78() {this.spans = []}
|
|
11925
|
+
__init79() {this.callbacks = []}
|
|
11926
|
+
constructor(options = {}) {;_class31.prototype.__init78.call(this);_class31.prototype.__init79.call(this);
|
|
11927
|
+
_BraintrustExporter.checkOtelAvailable();
|
|
11928
|
+
this.processor = new BraintrustSpanProcessor(options);
|
|
11929
|
+
}
|
|
11930
|
+
/**
|
|
11931
|
+
* Export spans to Braintrust by simulating span processor behavior.
|
|
11932
|
+
*/
|
|
11933
|
+
export(spans, resultCallback) {
|
|
11934
|
+
try {
|
|
11935
|
+
spans.forEach((span) => {
|
|
11936
|
+
this.processor.onEnd(span);
|
|
11937
|
+
});
|
|
11938
|
+
this.processor.forceFlush().then(() => {
|
|
11939
|
+
resultCallback({ code: 0 });
|
|
11940
|
+
}).catch((error2) => {
|
|
11941
|
+
resultCallback({ code: 1, error: error2 });
|
|
11942
|
+
});
|
|
11943
|
+
} catch (error2) {
|
|
11944
|
+
resultCallback({ code: 1, error: error2 });
|
|
11945
|
+
}
|
|
11946
|
+
}
|
|
11947
|
+
/**
|
|
11948
|
+
* Shutdown the exporter.
|
|
11949
|
+
*/
|
|
11950
|
+
shutdown() {
|
|
11951
|
+
return this.processor.shutdown();
|
|
11952
|
+
}
|
|
11953
|
+
/**
|
|
11954
|
+
* Force flush the exporter.
|
|
11955
|
+
*/
|
|
11956
|
+
forceFlush() {
|
|
11957
|
+
return this.processor.forceFlush();
|
|
11958
|
+
}
|
|
11959
|
+
}, _class31);
|
|
11871
11960
|
|
|
11872
11961
|
// dev/types.ts
|
|
11873
11962
|
|
|
@@ -12013,4 +12102,5 @@ var index_default = exports_node_exports;
|
|
|
12013
12102
|
|
|
12014
12103
|
|
|
12015
12104
|
|
|
12016
|
-
|
|
12105
|
+
|
|
12106
|
+
exports.AISpanProcessor = AISpanProcessor; exports.Attachment = Attachment; exports.BaseAttachment = BaseAttachment; exports.BaseExperiment = BaseExperiment; exports.BraintrustExporter = BraintrustExporter; exports.BraintrustSpanProcessor = BraintrustSpanProcessor; exports.BraintrustState = BraintrustState; exports.BraintrustStream = BraintrustStream; exports.CodeFunction = CodeFunction; exports.CodePrompt = CodePrompt; exports.Dataset = Dataset; exports.ERR_PERMALINK = ERR_PERMALINK; exports.Eval = Eval; exports.EvalResultWithSummary = EvalResultWithSummary; exports.Experiment = Experiment; exports.ExternalAttachment = ExternalAttachment; exports.FailedHTTPResponse = FailedHTTPResponse; exports.INTERNAL_BTQL_LIMIT = INTERNAL_BTQL_LIMIT; exports.LEGACY_CACHED_HEADER = LEGACY_CACHED_HEADER; exports.LazyValue = LazyValue; exports.Logger = Logger; exports.NOOP_SPAN = NOOP_SPAN; exports.NOOP_SPAN_PERMALINK = NOOP_SPAN_PERMALINK; exports.NoopSpan = NoopSpan; exports.Project = Project; exports.ProjectNameIdMap = ProjectNameIdMap; exports.Prompt = Prompt; exports.PromptBuilder = PromptBuilder; exports.ReadonlyAttachment = ReadonlyAttachment; exports.ReadonlyExperiment = ReadonlyExperiment; exports.Reporter = Reporter; exports.ScorerBuilder = ScorerBuilder; exports.SpanImpl = SpanImpl; exports.TestBackgroundLogger = TestBackgroundLogger; exports.ToolBuilder = ToolBuilder; exports.X_CACHED_HEADER = X_CACHED_HEADER; exports._exportsForTestingOnly = _exportsForTestingOnly; exports._internalGetGlobalState = _internalGetGlobalState; exports._internalSetInitialState = _internalSetInitialState; exports.braintrustStreamChunkSchema = braintrustStreamChunkSchema; exports.buildLocalSummary = buildLocalSummary; exports.createFinalValuePassThroughStream = createFinalValuePassThroughStream; exports.currentExperiment = currentExperiment; exports.currentLogger = currentLogger; exports.currentSpan = currentSpan; exports.default = index_default; exports.defaultErrorScoreHandler = defaultErrorScoreHandler; exports.deserializePlainStringAsJSON = deserializePlainStringAsJSON; exports.devNullWritableStream = devNullWritableStream; exports.evaluatorDefinitionSchema = evaluatorDefinitionSchema; exports.evaluatorDefinitionsSchema = evaluatorDefinitionsSchema; exports.flush = flush; exports.getSpanParentObject = getSpanParentObject; exports.graph = graph_framework_exports; exports.init = init; exports.initDataset = initDataset; exports.initExperiment = initExperiment; exports.initFunction = initFunction; exports.initLogger = initLogger; exports.invoke = invoke; exports.loadPrompt = loadPrompt; exports.log = log; exports.logError = logError; exports.login = login; exports.loginToState = loginToState; exports.newId = newId; exports.parseCachedHeader = parseCachedHeader; exports.permalink = permalink; exports.projects = projects; exports.promptContentsSchema = promptContentsSchema; exports.promptDefinitionSchema = promptDefinitionSchema; exports.promptDefinitionToPromptData = promptDefinitionToPromptData; exports.promptDefinitionWithToolsSchema = promptDefinitionWithToolsSchema; exports.renderMessage = renderMessage; exports.renderPromptParams = renderPromptParams; exports.reportFailures = reportFailures; exports.runEvaluator = runEvaluator; exports.setFetch = setFetch; exports.spanComponentsToObjectId = spanComponentsToObjectId; exports.startSpan = startSpan; exports.summarize = summarize; exports.toolFunctionDefinitionSchema = _typespecs.toolFunctionDefinitionSchema; exports.traceable = traceable; exports.traced = traced; exports.updateSpan = updateSpan; exports.withCurrent = withCurrent; exports.withDataset = withDataset; exports.withExperiment = withExperiment; exports.withLogger = withLogger; exports.withParent = withParent; exports.wrapAISDKModel = wrapAISDKModel; exports.wrapAnthropic = wrapAnthropic; exports.wrapOpenAI = wrapOpenAI; exports.wrapOpenAIv4 = wrapOpenAIv4; exports.wrapTraced = wrapTraced;
|