@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.cjs
CHANGED
|
@@ -354,7 +354,7 @@ var resetGlobalLogger = () => {
|
|
|
354
354
|
// package.json
|
|
355
355
|
var package_default = {
|
|
356
356
|
name: "@elasticdash/core",
|
|
357
|
-
version: "0.0.
|
|
357
|
+
version: "0.0.6",
|
|
358
358
|
description: "Core functions and utilities for ElasticDash packages",
|
|
359
359
|
type: "module",
|
|
360
360
|
sideEffects: false,
|
|
@@ -395,47 +395,47 @@ var package_default = {
|
|
|
395
395
|
};
|
|
396
396
|
|
|
397
397
|
// src/constants.ts
|
|
398
|
-
var ELASTICDASH_TRACER_NAME = "
|
|
398
|
+
var ELASTICDASH_TRACER_NAME = "elasticdash-sdk";
|
|
399
399
|
var ELASTICDASH_SDK_VERSION = package_default.version;
|
|
400
400
|
var ELASTICDASH_SDK_NAME = "javascript";
|
|
401
401
|
var ELASTICDASH_SDK_EXPERIMENT_ENVIRONMENT = "sdk-experiment";
|
|
402
402
|
var LangfuseOtelSpanAttributes = /* @__PURE__ */ ((LangfuseOtelSpanAttributes2) => {
|
|
403
|
-
LangfuseOtelSpanAttributes2["TRACE_NAME"] = "
|
|
403
|
+
LangfuseOtelSpanAttributes2["TRACE_NAME"] = "elasticdash.trace.name";
|
|
404
404
|
LangfuseOtelSpanAttributes2["TRACE_USER_ID"] = "user.id";
|
|
405
405
|
LangfuseOtelSpanAttributes2["TRACE_SESSION_ID"] = "session.id";
|
|
406
|
-
LangfuseOtelSpanAttributes2["TRACE_TAGS"] = "
|
|
407
|
-
LangfuseOtelSpanAttributes2["TRACE_PUBLIC"] = "
|
|
408
|
-
LangfuseOtelSpanAttributes2["TRACE_METADATA"] = "
|
|
409
|
-
LangfuseOtelSpanAttributes2["TRACE_INPUT"] = "
|
|
410
|
-
LangfuseOtelSpanAttributes2["TRACE_OUTPUT"] = "
|
|
411
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_TYPE"] = "
|
|
412
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_METADATA"] = "
|
|
413
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_LEVEL"] = "
|
|
414
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_STATUS_MESSAGE"] = "
|
|
415
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_INPUT"] = "
|
|
416
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_OUTPUT"] = "
|
|
417
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_COMPLETION_START_TIME"] = "
|
|
418
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_MODEL"] = "
|
|
419
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_MODEL_PARAMETERS"] = "
|
|
420
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_USAGE_DETAILS"] = "
|
|
421
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_COST_DETAILS"] = "
|
|
422
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_PROMPT_NAME"] = "
|
|
423
|
-
LangfuseOtelSpanAttributes2["OBSERVATION_PROMPT_VERSION"] = "
|
|
424
|
-
LangfuseOtelSpanAttributes2["ENVIRONMENT"] = "
|
|
425
|
-
LangfuseOtelSpanAttributes2["RELEASE"] = "
|
|
426
|
-
LangfuseOtelSpanAttributes2["VERSION"] = "
|
|
427
|
-
LangfuseOtelSpanAttributes2["AS_ROOT"] = "
|
|
428
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_ID"] = "
|
|
429
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_NAME"] = "
|
|
430
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_DESCRIPTION"] = "
|
|
431
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_METADATA"] = "
|
|
432
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_DATASET_ID"] = "
|
|
433
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_ID"] = "
|
|
434
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_EXPECTED_OUTPUT"] = "
|
|
435
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_METADATA"] = "
|
|
436
|
-
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_ROOT_OBSERVATION_ID"] = "
|
|
437
|
-
LangfuseOtelSpanAttributes2["TRACE_COMPAT_USER_ID"] = "
|
|
438
|
-
LangfuseOtelSpanAttributes2["TRACE_COMPAT_SESSION_ID"] = "
|
|
406
|
+
LangfuseOtelSpanAttributes2["TRACE_TAGS"] = "elasticdash.trace.tags";
|
|
407
|
+
LangfuseOtelSpanAttributes2["TRACE_PUBLIC"] = "elasticdash.trace.public";
|
|
408
|
+
LangfuseOtelSpanAttributes2["TRACE_METADATA"] = "elasticdash.trace.metadata";
|
|
409
|
+
LangfuseOtelSpanAttributes2["TRACE_INPUT"] = "elasticdash.trace.input";
|
|
410
|
+
LangfuseOtelSpanAttributes2["TRACE_OUTPUT"] = "elasticdash.trace.output";
|
|
411
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_TYPE"] = "elasticdash.observation.type";
|
|
412
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_METADATA"] = "elasticdash.observation.metadata";
|
|
413
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_LEVEL"] = "elasticdash.observation.level";
|
|
414
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_STATUS_MESSAGE"] = "elasticdash.observation.status_message";
|
|
415
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_INPUT"] = "elasticdash.observation.input";
|
|
416
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_OUTPUT"] = "elasticdash.observation.output";
|
|
417
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_COMPLETION_START_TIME"] = "elasticdash.observation.completion_start_time";
|
|
418
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_MODEL"] = "elasticdash.observation.model.name";
|
|
419
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_MODEL_PARAMETERS"] = "elasticdash.observation.model.parameters";
|
|
420
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_USAGE_DETAILS"] = "elasticdash.observation.usage_details";
|
|
421
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_COST_DETAILS"] = "elasticdash.observation.cost_details";
|
|
422
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_PROMPT_NAME"] = "elasticdash.observation.prompt.name";
|
|
423
|
+
LangfuseOtelSpanAttributes2["OBSERVATION_PROMPT_VERSION"] = "elasticdash.observation.prompt.version";
|
|
424
|
+
LangfuseOtelSpanAttributes2["ENVIRONMENT"] = "elasticdash.environment";
|
|
425
|
+
LangfuseOtelSpanAttributes2["RELEASE"] = "elasticdash.release";
|
|
426
|
+
LangfuseOtelSpanAttributes2["VERSION"] = "elasticdash.version";
|
|
427
|
+
LangfuseOtelSpanAttributes2["AS_ROOT"] = "elasticdash.internal.as_root";
|
|
428
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_ID"] = "elasticdash.experiment.id";
|
|
429
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_NAME"] = "elasticdash.experiment.name";
|
|
430
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_DESCRIPTION"] = "elasticdash.experiment.description";
|
|
431
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_METADATA"] = "elasticdash.experiment.metadata";
|
|
432
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_DATASET_ID"] = "elasticdash.experiment.dataset.id";
|
|
433
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_ID"] = "elasticdash.experiment.item.id";
|
|
434
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_EXPECTED_OUTPUT"] = "elasticdash.experiment.item.expected_output";
|
|
435
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_METADATA"] = "elasticdash.experiment.item.metadata";
|
|
436
|
+
LangfuseOtelSpanAttributes2["EXPERIMENT_ITEM_ROOT_OBSERVATION_ID"] = "elasticdash.experiment.item.root_observation_id";
|
|
437
|
+
LangfuseOtelSpanAttributes2["TRACE_COMPAT_USER_ID"] = "elasticdash.user.id";
|
|
438
|
+
LangfuseOtelSpanAttributes2["TRACE_COMPAT_SESSION_ID"] = "elasticdash.session.id";
|
|
439
439
|
return LangfuseOtelSpanAttributes2;
|
|
440
440
|
})(LangfuseOtelSpanAttributes || {});
|
|
441
441
|
|
|
@@ -3325,7 +3325,7 @@ var Comments = class {
|
|
|
3325
3325
|
/**
|
|
3326
3326
|
* Get a comment by id
|
|
3327
3327
|
*
|
|
3328
|
-
* @param {string} commentId - The unique
|
|
3328
|
+
* @param {string} commentId - The unique elasticdash identifier of a comment
|
|
3329
3329
|
* @param {Comments.RequestOptions} requestOptions - Request-specific configuration.
|
|
3330
3330
|
*
|
|
3331
3331
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -4935,7 +4935,7 @@ var Ingestion = class {
|
|
|
4935
4935
|
/**
|
|
4936
4936
|
* **Legacy endpoint for batch ingestion for Langfuse Observability.**
|
|
4937
4937
|
*
|
|
4938
|
-
* -> Please use the OpenTelemetry endpoint (`/api/public/otel/v1/traces`). Learn more: https://
|
|
4938
|
+
* -> Please use the OpenTelemetry endpoint (`/api/public/otel/v1/traces`). Learn more: https://elasticdash.com/integrations/native/opentelemetry
|
|
4939
4939
|
*
|
|
4940
4940
|
* Within each batch, there can be multiple events.
|
|
4941
4941
|
* Each event has a type, an id, a timestamp, metadata and a body.
|
|
@@ -4945,7 +4945,7 @@ var Ingestion = class {
|
|
|
4945
4945
|
* I.e. if you want to update a trace, you'd use the same body id, but separate event IDs.
|
|
4946
4946
|
*
|
|
4947
4947
|
* Notes:
|
|
4948
|
-
* - Introduction to data model: https://
|
|
4948
|
+
* - Introduction to data model: https://elasticdash.com/docs/observability/data-model
|
|
4949
4949
|
* - Batch sizes are limited to 3.5 MB in total. You need to adjust the number of events per batch accordingly.
|
|
4950
4950
|
* - 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.
|
|
4951
4951
|
*
|
|
@@ -5369,7 +5369,7 @@ var Media = class {
|
|
|
5369
5369
|
/**
|
|
5370
5370
|
* Get a media record
|
|
5371
5371
|
*
|
|
5372
|
-
* @param {string} mediaId - The unique
|
|
5372
|
+
* @param {string} mediaId - The unique elasticdash identifier of a media record
|
|
5373
5373
|
* @param {Media.RequestOptions} requestOptions - Request-specific configuration.
|
|
5374
5374
|
*
|
|
5375
5375
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -5472,7 +5472,7 @@ var Media = class {
|
|
|
5472
5472
|
/**
|
|
5473
5473
|
* Patch a media record
|
|
5474
5474
|
*
|
|
5475
|
-
* @param {string} mediaId - The unique
|
|
5475
|
+
* @param {string} mediaId - The unique elasticdash identifier of a media record
|
|
5476
5476
|
* @param {LangfuseAPI.PatchMediaBody} request
|
|
5477
5477
|
* @param {Media.RequestOptions} requestOptions - Request-specific configuration.
|
|
5478
5478
|
*
|
|
@@ -5718,7 +5718,7 @@ var MetricsV2 = class {
|
|
|
5718
5718
|
* - Backwards-compatible: traceName, traceRelease, traceVersion dimensions are still available on observations view
|
|
5719
5719
|
* - High cardinality dimensions are not supported and will return a 400 error (see below)
|
|
5720
5720
|
*
|
|
5721
|
-
* For more details, see the [Metrics API documentation](https://
|
|
5721
|
+
* For more details, see the [Metrics API documentation](https://elasticdash.com/docs/metrics/features/metrics-api).
|
|
5722
5722
|
*
|
|
5723
5723
|
* ## Available Views
|
|
5724
5724
|
*
|
|
@@ -5940,7 +5940,7 @@ var Metrics = class {
|
|
|
5940
5940
|
*
|
|
5941
5941
|
* Consider using the [v2 metrics endpoint](/api-reference#tag/metricsv2/GET/api/public/v2/metrics) for better performance.
|
|
5942
5942
|
*
|
|
5943
|
-
* For more details, see the [Metrics API documentation](https://
|
|
5943
|
+
* For more details, see the [Metrics API documentation](https://elasticdash.com/docs/metrics/features/metrics-api).
|
|
5944
5944
|
*
|
|
5945
5945
|
* @param {LangfuseAPI.GetMetricsRequest} request
|
|
5946
5946
|
* @param {Metrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -6730,7 +6730,7 @@ var Observations = class {
|
|
|
6730
6730
|
/**
|
|
6731
6731
|
* Get a observation
|
|
6732
6732
|
*
|
|
6733
|
-
* @param {string} observationId - The unique
|
|
6733
|
+
* @param {string} observationId - The unique elasticdash identifier of an observation, can be an event, span or generation
|
|
6734
6734
|
* @param {Observations.RequestOptions} requestOptions - Request-specific configuration.
|
|
6735
6735
|
*
|
|
6736
6736
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -7027,8 +7027,8 @@ var Opentelemetry = class {
|
|
|
7027
7027
|
* - Implements `ExportTraceServiceRequest` message format
|
|
7028
7028
|
*
|
|
7029
7029
|
* **Documentation:**
|
|
7030
|
-
* - Integration guide: https://
|
|
7031
|
-
* - Data model: https://
|
|
7030
|
+
* - Integration guide: https://elasticdash.com/integrations/native/opentelemetry
|
|
7031
|
+
* - Data model: https://elasticdash.com/docs/observability/data-model
|
|
7032
7032
|
*
|
|
7033
7033
|
* @param {LangfuseAPI.OtelTraceRequest} request
|
|
7034
7034
|
* @param {Opentelemetry.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -7057,7 +7057,7 @@ var Opentelemetry = class {
|
|
|
7057
7057
|
* },
|
|
7058
7058
|
* scopeSpans: [{
|
|
7059
7059
|
* scope: {
|
|
7060
|
-
* name: "
|
|
7060
|
+
* name: "elasticdash-sdk",
|
|
7061
7061
|
* version: "2.60.3"
|
|
7062
7062
|
* },
|
|
7063
7063
|
* spans: [{
|
|
@@ -7068,7 +7068,7 @@ var Opentelemetry = class {
|
|
|
7068
7068
|
* startTimeUnixNano: "1747872000000000000",
|
|
7069
7069
|
* endTimeUnixNano: "1747872001000000000",
|
|
7070
7070
|
* attributes: [{
|
|
7071
|
-
* key: "
|
|
7071
|
+
* key: "elasticdash.observation.type",
|
|
7072
7072
|
* value: {
|
|
7073
7073
|
* stringValue: "generation"
|
|
7074
7074
|
* }
|
|
@@ -10413,7 +10413,7 @@ var ScoreConfigs = class {
|
|
|
10413
10413
|
/**
|
|
10414
10414
|
* Get a score config
|
|
10415
10415
|
*
|
|
10416
|
-
* @param {string} configId - The unique
|
|
10416
|
+
* @param {string} configId - The unique elasticdash identifier of a score config
|
|
10417
10417
|
* @param {ScoreConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
10418
10418
|
*
|
|
10419
10419
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -10516,7 +10516,7 @@ var ScoreConfigs = class {
|
|
|
10516
10516
|
/**
|
|
10517
10517
|
* Update a score config
|
|
10518
10518
|
*
|
|
10519
|
-
* @param {string} configId - The unique
|
|
10519
|
+
* @param {string} configId - The unique elasticdash identifier of a score config
|
|
10520
10520
|
* @param {LangfuseAPI.UpdateScoreConfigRequest} request
|
|
10521
10521
|
* @param {ScoreConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
10522
10522
|
*
|
|
@@ -10838,7 +10838,7 @@ var ScoreV2 = class {
|
|
|
10838
10838
|
/**
|
|
10839
10839
|
* Get a score (supports both trace and session scores)
|
|
10840
10840
|
*
|
|
10841
|
-
* @param {string} scoreId - The unique
|
|
10841
|
+
* @param {string} scoreId - The unique elasticdash identifier of a score
|
|
10842
10842
|
* @param {ScoreV2.RequestOptions} requestOptions - Request-specific configuration.
|
|
10843
10843
|
*
|
|
10844
10844
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -11079,7 +11079,7 @@ var Score = class {
|
|
|
11079
11079
|
/**
|
|
11080
11080
|
* Delete a score (supports both trace and session scores)
|
|
11081
11081
|
*
|
|
11082
|
-
* @param {string} scoreId - The unique
|
|
11082
|
+
* @param {string} scoreId - The unique elasticdash identifier of a score
|
|
11083
11083
|
* @param {Score.RequestOptions} requestOptions - Request-specific configuration.
|
|
11084
11084
|
*
|
|
11085
11085
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -11442,7 +11442,7 @@ var Trace = class {
|
|
|
11442
11442
|
/**
|
|
11443
11443
|
* Get a specific trace
|
|
11444
11444
|
*
|
|
11445
|
-
* @param {string} traceId - The unique
|
|
11445
|
+
* @param {string} traceId - The unique elasticdash identifier of a trace
|
|
11446
11446
|
* @param {Trace.RequestOptions} requestOptions - Request-specific configuration.
|
|
11447
11447
|
*
|
|
11448
11448
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -11545,7 +11545,7 @@ var Trace = class {
|
|
|
11545
11545
|
/**
|
|
11546
11546
|
* Delete a specific trace
|
|
11547
11547
|
*
|
|
11548
|
-
* @param {string} traceId - The unique
|
|
11548
|
+
* @param {string} traceId - The unique elasticdash identifier of the trace to delete
|
|
11549
11549
|
* @param {Trace.RequestOptions} requestOptions - Request-specific configuration.
|
|
11550
11550
|
*
|
|
11551
11551
|
* @throws {@link LangfuseAPI.Error}
|
|
@@ -12413,7 +12413,7 @@ function getPropagatedAttributesFromContext(context) {
|
|
|
12413
12413
|
const metadata = context.getValue(LangfuseOtelContextKeys["metadata"]);
|
|
12414
12414
|
if (metadata && typeof metadata === "object" && metadata !== null) {
|
|
12415
12415
|
for (const [k, v] of Object.entries(metadata)) {
|
|
12416
|
-
const spanKey = `${"
|
|
12416
|
+
const spanKey = `${"elasticdash.trace.metadata" /* TRACE_METADATA */}.${k}`;
|
|
12417
12417
|
propagatedAttributes[spanKey] = String(v);
|
|
12418
12418
|
}
|
|
12419
12419
|
}
|
|
@@ -12426,7 +12426,7 @@ function getPropagatedAttributesFromContext(context) {
|
|
|
12426
12426
|
}
|
|
12427
12427
|
}
|
|
12428
12428
|
if (propagatedAttributes[getSpanKeyForPropagatedKey("experimentItemRootObservationId")]) {
|
|
12429
|
-
propagatedAttributes["
|
|
12429
|
+
propagatedAttributes["elasticdash.environment" /* ENVIRONMENT */] = ELASTICDASH_SDK_EXPERIMENT_ENVIRONMENT;
|
|
12430
12430
|
}
|
|
12431
12431
|
return propagatedAttributes;
|
|
12432
12432
|
}
|
|
@@ -12447,7 +12447,7 @@ function setPropagatedAttribute(params) {
|
|
|
12447
12447
|
if (key === "metadata") {
|
|
12448
12448
|
for (const [k, v] of Object.entries(mergedMetadata)) {
|
|
12449
12449
|
span.setAttribute(
|
|
12450
|
-
`${"
|
|
12450
|
+
`${"elasticdash.trace.metadata" /* TRACE_METADATA */}.${k}`,
|
|
12451
12451
|
v
|
|
12452
12452
|
);
|
|
12453
12453
|
}
|
|
@@ -12522,27 +12522,27 @@ function getSpanKeyForPropagatedKey(key) {
|
|
|
12522
12522
|
case "sessionId":
|
|
12523
12523
|
return "session.id" /* TRACE_SESSION_ID */;
|
|
12524
12524
|
case "version":
|
|
12525
|
-
return "
|
|
12525
|
+
return "elasticdash.version" /* VERSION */;
|
|
12526
12526
|
case "traceName":
|
|
12527
|
-
return "
|
|
12527
|
+
return "elasticdash.trace.name" /* TRACE_NAME */;
|
|
12528
12528
|
case "metadata":
|
|
12529
|
-
return "
|
|
12529
|
+
return "elasticdash.trace.metadata" /* TRACE_METADATA */;
|
|
12530
12530
|
case "tags":
|
|
12531
|
-
return "
|
|
12531
|
+
return "elasticdash.trace.tags" /* TRACE_TAGS */;
|
|
12532
12532
|
case "experimentId":
|
|
12533
|
-
return "
|
|
12533
|
+
return "elasticdash.experiment.id" /* EXPERIMENT_ID */;
|
|
12534
12534
|
case "experimentName":
|
|
12535
|
-
return "
|
|
12535
|
+
return "elasticdash.experiment.name" /* EXPERIMENT_NAME */;
|
|
12536
12536
|
case "experimentMetadata":
|
|
12537
|
-
return "
|
|
12537
|
+
return "elasticdash.experiment.metadata" /* EXPERIMENT_METADATA */;
|
|
12538
12538
|
case "experimentDatasetId":
|
|
12539
|
-
return "
|
|
12539
|
+
return "elasticdash.experiment.dataset.id" /* EXPERIMENT_DATASET_ID */;
|
|
12540
12540
|
case "experimentItemId":
|
|
12541
|
-
return "
|
|
12541
|
+
return "elasticdash.experiment.item.id" /* EXPERIMENT_ITEM_ID */;
|
|
12542
12542
|
case "experimentItemMetadata":
|
|
12543
|
-
return "
|
|
12543
|
+
return "elasticdash.experiment.item.metadata" /* EXPERIMENT_ITEM_METADATA */;
|
|
12544
12544
|
case "experimentItemRootObservationId":
|
|
12545
|
-
return "
|
|
12545
|
+
return "elasticdash.experiment.item.root_observation_id" /* EXPERIMENT_ITEM_ROOT_OBSERVATION_ID */;
|
|
12546
12546
|
default: {
|
|
12547
12547
|
const fallback = key;
|
|
12548
12548
|
throw Error("Unhandled propagated key", fallback);
|
|
@@ -12588,7 +12588,7 @@ function getSpanKeyFromBaggageKey(baggageKey) {
|
|
|
12588
12588
|
const suffix = baggageKey.slice(ELASTICDASH_BAGGAGE_PREFIX.length);
|
|
12589
12589
|
if (suffix.startsWith("metadata_")) {
|
|
12590
12590
|
const metadataKey = suffix.slice("metadata_".length);
|
|
12591
|
-
return `${"
|
|
12591
|
+
return `${"elasticdash.trace.metadata" /* TRACE_METADATA */}.${metadataKey}`;
|
|
12592
12592
|
}
|
|
12593
12593
|
switch (suffix) {
|
|
12594
12594
|
case "user_id":
|