@elasticdash/core 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +69 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +65 -65
- package/dist/index.d.ts +65 -65
- package/dist/index.mjs +69 -69
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -253,7 +253,7 @@ var resetGlobalLogger = () => {
|
|
|
253
253
|
// package.json
|
|
254
254
|
var package_default = {
|
|
255
255
|
name: "@elasticdash/core",
|
|
256
|
-
version: "0.0.
|
|
256
|
+
version: "0.0.6",
|
|
257
257
|
description: "Core functions and utilities for ElasticDash packages",
|
|
258
258
|
type: "module",
|
|
259
259
|
sideEffects: false,
|
|
@@ -294,47 +294,47 @@ var package_default = {
|
|
|
294
294
|
};
|
|
295
295
|
|
|
296
296
|
// src/constants.ts
|
|
297
|
-
var ELASTICDASH_TRACER_NAME = "
|
|
297
|
+
var ELASTICDASH_TRACER_NAME = "elasticdash-sdk";
|
|
298
298
|
var ELASTICDASH_SDK_VERSION = package_default.version;
|
|
299
299
|
var ELASTICDASH_SDK_NAME = "javascript";
|
|
300
300
|
var ELASTICDASH_SDK_EXPERIMENT_ENVIRONMENT = "sdk-experiment";
|
|
301
301
|
var LangfuseOtelSpanAttributes = /* @__PURE__ */ ((LangfuseOtelSpanAttributes2) => {
|
|
302
|
-
LangfuseOtelSpanAttributes2["TRACE_NAME"] = "
|
|
302
|
+
LangfuseOtelSpanAttributes2["TRACE_NAME"] = "elasticdash.trace.name";
|
|
303
303
|
LangfuseOtelSpanAttributes2["TRACE_USER_ID"] = "user.id";
|
|
304
304
|
LangfuseOtelSpanAttributes2["TRACE_SESSION_ID"] = "session.id";
|
|
305
|
-
LangfuseOtelSpanAttributes2["TRACE_TAGS"] = "
|
|
306
|
-
LangfuseOtelSpanAttributes2["TRACE_PUBLIC"] = "
|
|
307
|
-
LangfuseOtelSpanAttributes2["TRACE_METADATA"] = "
|
|
308
|
-
LangfuseOtelSpanAttributes2["TRACE_INPUT"] = "
|
|
309
|
-
LangfuseOtelSpanAttributes2["TRACE_OUTPUT"] = "
|
|
310
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_TYPE"] = "
|
|
311
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_METADATA"] = "
|
|
312
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_LEVEL"] = "
|
|
313
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_STATUS_MESSAGE"] = "
|
|
314
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_INPUT"] = "
|
|
315
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_OUTPUT"] = "
|
|
316
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_COMPLETION_START_TIME"] = "
|
|
317
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_MODEL"] = "
|
|
318
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_MODEL_PARAMETERS"] = "
|
|
319
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_USAGE_DETAILS"] = "
|
|
320
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_COST_DETAILS"] = "
|
|
321
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_PROMPT_NAME"] = "
|
|
322
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_PROMPT_VERSION"] = "
|
|
323
|
-
LangfuseOtelSpanAttributes2["ENVIRONMENT"] = "
|
|
324
|
-
LangfuseOtelSpanAttributes2["RELEASE"] = "
|
|
325
|
-
LangfuseOtelSpanAttributes2["VERSION"] = "
|
|
326
|
-
LangfuseOtelSpanAttributes2["AS_ROOT"] = "
|
|
327
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_ID"] = "
|
|
328
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_NAME"] = "
|
|
329
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_DESCRIPTION"] = "
|
|
330
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_METADATA"] = "
|
|
331
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_DATASET_ID"] = "
|
|
332
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_ID"] = "
|
|
333
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_EXPECTED_OUTPUT"] = "
|
|
334
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_METADATA"] = "
|
|
335
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_ROOT_OBSERVATION_ID"] = "
|
|
336
|
-
LangfuseOtelSpanAttributes2["TRACE_COMPAT_USER_ID"] = "
|
|
337
|
-
LangfuseOtelSpanAttributes2["TRACE_COMPAT_SESSION_ID"] = "
|
|
305
|
+
LangfuseOtelSpanAttributes2["TRACE_TAGS"] = "elasticdash.trace.tags";
|
|
306
|
+
LangfuseOtelSpanAttributes2["TRACE_PUBLIC"] = "elasticdash.trace.public";
|
|
307
|
+
LangfuseOtelSpanAttributes2["TRACE_METADATA"] = "elasticdash.trace.metadata";
|
|
308
|
+
LangfuseOtelSpanAttributes2["TRACE_INPUT"] = "elasticdash.trace.input";
|
|
309
|
+
LangfuseOtelSpanAttributes2["TRACE_OUTPUT"] = "elasticdash.trace.output";
|
|
310
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_TYPE"] = "elasticdash.observation.type";
|
|
311
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_METADATA"] = "elasticdash.observation.metadata";
|
|
312
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_LEVEL"] = "elasticdash.observation.level";
|
|
313
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_STATUS_MESSAGE"] = "elasticdash.observation.status_message";
|
|
314
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_INPUT"] = "elasticdash.observation.input";
|
|
315
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_OUTPUT"] = "elasticdash.observation.output";
|
|
316
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_COMPLETION_START_TIME"] = "elasticdash.observation.completion_start_time";
|
|
317
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_MODEL"] = "elasticdash.observation.model.name";
|
|
318
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_MODEL_PARAMETERS"] = "elasticdash.observation.model.parameters";
|
|
319
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_USAGE_DETAILS"] = "elasticdash.observation.usage_details";
|
|
320
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_COST_DETAILS"] = "elasticdash.observation.cost_details";
|
|
321
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_PROMPT_NAME"] = "elasticdash.observation.prompt.name";
|
|
322
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_PROMPT_VERSION"] = "elasticdash.observation.prompt.version";
|
|
323
|
+
LangfuseOtelSpanAttributes2["ENVIRONMENT"] = "elasticdash.environment";
|
|
324
|
+
LangfuseOtelSpanAttributes2["RELEASE"] = "elasticdash.release";
|
|
325
|
+
LangfuseOtelSpanAttributes2["VERSION"] = "elasticdash.version";
|
|
326
|
+
LangfuseOtelSpanAttributes2["AS_ROOT"] = "elasticdash.internal.as_root";
|
|
327
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_ID"] = "elasticdash.experiment.id";
|
|
328
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_NAME"] = "elasticdash.experiment.name";
|
|
329
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_DESCRIPTION"] = "elasticdash.experiment.description";
|
|
330
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_METADATA"] = "elasticdash.experiment.metadata";
|
|
331
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_DATASET_ID"] = "elasticdash.experiment.dataset.id";
|
|
332
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_ID"] = "elasticdash.experiment.item.id";
|
|
333
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_EXPECTED_OUTPUT"] = "elasticdash.experiment.item.expected_output";
|
|
334
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_METADATA"] = "elasticdash.experiment.item.metadata";
|
|
335
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_ROOT_OBSERVATION_ID"] = "elasticdash.experiment.item.root_observation_id";
|
|
336
|
+
LangfuseOtelSpanAttributes2["TRACE_COMPAT_USER_ID"] = "elasticdash.user.id";
|
|
337
|
+
LangfuseOtelSpanAttributes2["TRACE_COMPAT_SESSION_ID"] = "elasticdash.session.id";
|
|
338
338
|
return LangfuseOtelSpanAttributes2;
|
|
339
339
|
})(LangfuseOtelSpanAttributes || {});
|
|
340
340
|
|
|
@@ -3224,7 +3224,7 @@ var Comments = class {
|
|
|
3224
3224
|
/**
|
|
3225
3225
|
* Get a comment by id
|
|
3226
3226
|
*
|
|
3227
|
-
* @param {string} commentId - The unique
|
|
3227
|
+
* @param {string} commentId - The unique elasticdash identifier of a comment
|
|
3228
3228
|
* @param {Comments.RequestOptions} requestOptions - Request-specific configuration.
|
|
3229
3229
|
*
|
|
3230
3230
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -4834,7 +4834,7 @@ var Ingestion = class {
|
|
|
4834
4834
|
/**
|
|
4835
4835
|
* **Legacy endpoint for batch ingestion for Langfuse Observability.**
|
|
4836
4836
|
*
|
|
4837
|
-
* -> Please use the OpenTelemetry endpoint (`/api/public/otel/v1/traces`). Learn more: https://
|
|
4837
|
+
* -> Please use the OpenTelemetry endpoint (`/api/public/otel/v1/traces`). Learn more: https://elasticdash.com/integrations/native/opentelemetry
|
|
4838
4838
|
*
|
|
4839
4839
|
* Within each batch, there can be multiple events.
|
|
4840
4840
|
* Each event has a type, an id, a timestamp, metadata and a body.
|
|
@@ -4844,7 +4844,7 @@ var Ingestion = class {
|
|
|
4844
4844
|
* I.e. if you want to update a trace, you'd use the same body id, but separate event IDs.
|
|
4845
4845
|
*
|
|
4846
4846
|
* Notes:
|
|
4847
|
-
* - Introduction to data model: https://
|
|
4847
|
+
* - Introduction to data model: https://elasticdash.com/docs/observability/data-model
|
|
4848
4848
|
* - Batch sizes are limited to 3.5 MB in total. You need to adjust the number of events per batch accordingly.
|
|
4849
4849
|
* - The API does not return a 4xx status code for input errors. Instead, it responds with a 207 status code, which includes a list of the encountered errors.
|
|
4850
4850
|
*
|
|
@@ -5268,7 +5268,7 @@ var Media = class {
|
|
|
5268
5268
|
/**
|
|
5269
5269
|
* Get a media record
|
|
5270
5270
|
*
|
|
5271
|
-
* @param {string} mediaId - The unique
|
|
5271
|
+
* @param {string} mediaId - The unique elasticdash identifier of a media record
|
|
5272
5272
|
* @param {Media.RequestOptions} requestOptions - Request-specific configuration.
|
|
5273
5273
|
*
|
|
5274
5274
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -5371,7 +5371,7 @@ var Media = class {
|
|
|
5371
5371
|
/**
|
|
5372
5372
|
* Patch a media record
|
|
5373
5373
|
*
|
|
5374
|
-
* @param {string} mediaId - The unique
|
|
5374
|
+
* @param {string} mediaId - The unique elasticdash identifier of a media record
|
|
5375
5375
|
* @param {LangfuseAPI.PatchMediaBody} request
|
|
5376
5376
|
* @param {Media.RequestOptions} requestOptions - Request-specific configuration.
|
|
5377
5377
|
*
|
|
@@ -5617,7 +5617,7 @@ var MetricsV2 = class {
|
|
|
5617
5617
|
* - Backwards-compatible: traceName, traceRelease, traceVersion dimensions are still available on observations view
|
|
5618
5618
|
* - High cardinality dimensions are not supported and will return a 400 error (see below)
|
|
5619
5619
|
*
|
|
5620
|
-
* For more details, see the [Metrics API documentation](https://
|
|
5620
|
+
* For more details, see the [Metrics API documentation](https://elasticdash.com/docs/metrics/features/metrics-api).
|
|
5621
5621
|
*
|
|
5622
5622
|
* ## Available Views
|
|
5623
5623
|
*
|
|
@@ -5839,7 +5839,7 @@ var Metrics = class {
|
|
|
5839
5839
|
*
|
|
5840
5840
|
* Consider using the [v2 metrics endpoint](/api-reference#tag/metricsv2/GET/api/public/v2/metrics) for better performance.
|
|
5841
5841
|
*
|
|
5842
|
-
* For more details, see the [Metrics API documentation](https://
|
|
5842
|
+
* For more details, see the [Metrics API documentation](https://elasticdash.com/docs/metrics/features/metrics-api).
|
|
5843
5843
|
*
|
|
5844
5844
|
* @param {LangfuseAPI.GetMetricsRequest} request
|
|
5845
5845
|
* @param {Metrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -6629,7 +6629,7 @@ var Observations = class {
|
|
|
6629
6629
|
/**
|
|
6630
6630
|
* Get a observation
|
|
6631
6631
|
*
|
|
6632
|
-
* @param {string} observationId - The unique
|
|
6632
|
+
* @param {string} observationId - The unique elasticdash identifier of an observation, can be an event, span or generation
|
|
6633
6633
|
* @param {Observations.RequestOptions} requestOptions - Request-specific configuration.
|
|
6634
6634
|
*
|
|
6635
6635
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -6926,8 +6926,8 @@ var Opentelemetry = class {
|
|
|
6926
6926
|
* - Implements `ExportTraceServiceRequest` message format
|
|
6927
6927
|
*
|
|
6928
6928
|
* **Documentation:**
|
|
6929
|
-
* - Integration guide: https://
|
|
6930
|
-
* - Data model: https://
|
|
6929
|
+
* - Integration guide: https://elasticdash.com/integrations/native/opentelemetry
|
|
6930
|
+
* - Data model: https://elasticdash.com/docs/observability/data-model
|
|
6931
6931
|
*
|
|
6932
6932
|
* @param {LangfuseAPI.OtelTraceRequest} request
|
|
6933
6933
|
* @param {Opentelemetry.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -6956,7 +6956,7 @@ var Opentelemetry = class {
|
|
|
6956
6956
|
* },
|
|
6957
6957
|
* scopeSpans: [{
|
|
6958
6958
|
* scope: {
|
|
6959
|
-
* name: "
|
|
6959
|
+
* name: "elasticdash-sdk",
|
|
6960
6960
|
* version: "2.60.3"
|
|
6961
6961
|
* },
|
|
6962
6962
|
* spans: [{
|
|
@@ -6967,7 +6967,7 @@ var Opentelemetry = class {
|
|
|
6967
6967
|
* startTimeUnixNano: "1747872000000000000",
|
|
6968
6968
|
* endTimeUnixNano: "1747872001000000000",
|
|
6969
6969
|
* attributes: [{
|
|
6970
|
-
* key: "
|
|
6970
|
+
* key: "elasticdash.observation.type",
|
|
6971
6971
|
* value: {
|
|
6972
6972
|
* stringValue: "generation"
|
|
6973
6973
|
* }
|
|
@@ -10312,7 +10312,7 @@ var ScoreConfigs = class {
|
|
|
10312
10312
|
/**
|
|
10313
10313
|
* Get a score config
|
|
10314
10314
|
*
|
|
10315
|
-
* @param {string} configId - The unique
|
|
10315
|
+
* @param {string} configId - The unique elasticdash identifier of a score config
|
|
10316
10316
|
* @param {ScoreConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
10317
10317
|
*
|
|
10318
10318
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -10415,7 +10415,7 @@ var ScoreConfigs = class {
|
|
|
10415
10415
|
/**
|
|
10416
10416
|
* Update a score config
|
|
10417
10417
|
*
|
|
10418
|
-
* @param {string} configId - The unique
|
|
10418
|
+
* @param {string} configId - The unique elasticdash identifier of a score config
|
|
10419
10419
|
* @param {LangfuseAPI.UpdateScoreConfigRequest} request
|
|
10420
10420
|
* @param {ScoreConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
10421
10421
|
*
|
|
@@ -10737,7 +10737,7 @@ var ScoreV2 = class {
|
|
|
10737
10737
|
/**
|
|
10738
10738
|
* Get a score (supports both trace and session scores)
|
|
10739
10739
|
*
|
|
10740
|
-
* @param {string} scoreId - The unique
|
|
10740
|
+
* @param {string} scoreId - The unique elasticdash identifier of a score
|
|
10741
10741
|
* @param {ScoreV2.RequestOptions} requestOptions - Request-specific configuration.
|
|
10742
10742
|
*
|
|
10743
10743
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -10978,7 +10978,7 @@ var Score = class {
|
|
|
10978
10978
|
/**
|
|
10979
10979
|
* Delete a score (supports both trace and session scores)
|
|
10980
10980
|
*
|
|
10981
|
-
* @param {string} scoreId - The unique
|
|
10981
|
+
* @param {string} scoreId - The unique elasticdash identifier of a score
|
|
10982
10982
|
* @param {Score.RequestOptions} requestOptions - Request-specific configuration.
|
|
10983
10983
|
*
|
|
10984
10984
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -11341,7 +11341,7 @@ var Trace = class {
|
|
|
11341
11341
|
/**
|
|
11342
11342
|
* Get a specific trace
|
|
11343
11343
|
*
|
|
11344
|
-
* @param {string} traceId - The unique
|
|
11344
|
+
* @param {string} traceId - The unique elasticdash identifier of a trace
|
|
11345
11345
|
* @param {Trace.RequestOptions} requestOptions - Request-specific configuration.
|
|
11346
11346
|
*
|
|
11347
11347
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -11444,7 +11444,7 @@ var Trace = class {
|
|
|
11444
11444
|
/**
|
|
11445
11445
|
* Delete a specific trace
|
|
11446
11446
|
*
|
|
11447
|
-
* @param {string} traceId - The unique
|
|
11447
|
+
* @param {string} traceId - The unique elasticdash identifier of the trace to delete
|
|
11448
11448
|
* @param {Trace.RequestOptions} requestOptions - Request-specific configuration.
|
|
11449
11449
|
*
|
|
11450
11450
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -12317,7 +12317,7 @@ function getPropagatedAttributesFromContext(context) {
|
|
|
12317
12317
|
const metadata = context.getValue(LangfuseOtelContextKeys["metadata"]);
|
|
12318
12318
|
if (metadata && typeof metadata === "object" && metadata !== null) {
|
|
12319
12319
|
for (const [k, v] of Object.entries(metadata)) {
|
|
12320
|
-
const spanKey = `${"
|
|
12320
|
+
const spanKey = `${"elasticdash.trace.metadata" /* TRACE_METADATA */}.${k}`;
|
|
12321
12321
|
propagatedAttributes[spanKey] = String(v);
|
|
12322
12322
|
}
|
|
12323
12323
|
}
|
|
@@ -12330,7 +12330,7 @@ function getPropagatedAttributesFromContext(context) {
|
|
|
12330
12330
|
}
|
|
12331
12331
|
}
|
|
12332
12332
|
if (propagatedAttributes[getSpanKeyForPropagatedKey("experimentItemRootObservationId")]) {
|
|
12333
|
-
propagatedAttributes["
|
|
12333
|
+
propagatedAttributes["elasticdash.environment" /* ENVIRONMENT */] = ELASTICDASH_SDK_EXPERIMENT_ENVIRONMENT;
|
|
12334
12334
|
}
|
|
12335
12335
|
return propagatedAttributes;
|
|
12336
12336
|
}
|
|
@@ -12351,7 +12351,7 @@ function setPropagatedAttribute(params) {
|
|
|
12351
12351
|
if (key === "metadata") {
|
|
12352
12352
|
for (const [k, v] of Object.entries(mergedMetadata)) {
|
|
12353
12353
|
span.setAttribute(
|
|
12354
|
-
`${"
|
|
12354
|
+
`${"elasticdash.trace.metadata" /* TRACE_METADATA */}.${k}`,
|
|
12355
12355
|
v
|
|
12356
12356
|
);
|
|
12357
12357
|
}
|
|
@@ -12426,27 +12426,27 @@ function getSpanKeyForPropagatedKey(key) {
|
|
|
12426
12426
|
case "sessionId":
|
|
12427
12427
|
return "session.id" /* TRACE_SESSION_ID */;
|
|
12428
12428
|
case "version":
|
|
12429
|
-
return "
|
|
12429
|
+
return "elasticdash.version" /* VERSION */;
|
|
12430
12430
|
case "traceName":
|
|
12431
|
-
return "
|
|
12431
|
+
return "elasticdash.trace.name" /* TRACE_NAME */;
|
|
12432
12432
|
case "metadata":
|
|
12433
|
-
return "
|
|
12433
|
+
return "elasticdash.trace.metadata" /* TRACE_METADATA */;
|
|
12434
12434
|
case "tags":
|
|
12435
|
-
return "
|
|
12435
|
+
return "elasticdash.trace.tags" /* TRACE_TAGS */;
|
|
12436
12436
|
case "experimentId":
|
|
12437
|
-
return "
|
|
12437
|
+
return "elasticdash.experiment.id" /* EXPERIMENT_ID */;
|
|
12438
12438
|
case "experimentName":
|
|
12439
|
-
return "
|
|
12439
|
+
return "elasticdash.experiment.name" /* EXPERIMENT_NAME */;
|
|
12440
12440
|
case "experimentMetadata":
|
|
12441
|
-
return "
|
|
12441
|
+
return "elasticdash.experiment.metadata" /* EXPERIMENT_METADATA */;
|
|
12442
12442
|
case "experimentDatasetId":
|
|
12443
|
-
return "
|
|
12443
|
+
return "elasticdash.experiment.dataset.id" /* EXPERIMENT_DATASET_ID */;
|
|
12444
12444
|
case "experimentItemId":
|
|
12445
|
-
return "
|
|
12445
|
+
return "elasticdash.experiment.item.id" /* EXPERIMENT_ITEM_ID */;
|
|
12446
12446
|
case "experimentItemMetadata":
|
|
12447
|
-
return "
|
|
12447
|
+
return "elasticdash.experiment.item.metadata" /* EXPERIMENT_ITEM_METADATA */;
|
|
12448
12448
|
case "experimentItemRootObservationId":
|
|
12449
|
-
return "
|
|
12449
|
+
return "elasticdash.experiment.item.root_observation_id" /* EXPERIMENT_ITEM_ROOT_OBSERVATION_ID */;
|
|
12450
12450
|
default: {
|
|
12451
12451
|
const fallback = key;
|
|
12452
12452
|
throw Error("Unhandled propagated key", fallback);
|
|
@@ -12492,7 +12492,7 @@ function getSpanKeyFromBaggageKey(baggageKey) {
|
|
|
12492
12492
|
const suffix = baggageKey.slice(ELASTICDASH_BAGGAGE_PREFIX.length);
|
|
12493
12493
|
if (suffix.startsWith("metadata_")) {
|
|
12494
12494
|
const metadataKey = suffix.slice("metadata_".length);
|
|
12495
|
-
return `${"
|
|
12495
|
+
return `${"elasticdash.trace.metadata" /* TRACE_METADATA */}.${metadataKey}`;
|
|
12496
12496
|
}
|
|
12497
12497
|
switch (suffix) {
|
|
12498
12498
|
case "user_id":
|