Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: extend source details for dual-write (#10886)

Steffen Schmitz69984de00a4b
diff --git a/worker/src/features/eventPropagation/handleEventPropagationJob.ts b/worker/src/features/eventPropagation/handleEventPropagationJob.ts
index af5a6d2f4b..ef07182e6f 100644
--- a/worker/src/features/eventPropagation/handleEventPropagationJob.ts
+++ b/worker/src/features/eventPropagation/handleEventPropagationJob.ts
@@ -334,7 +334,7 @@ export const handleEventPropagationJob = async (
CAST(mapConcat(obs.metadata, coalesce(t.metadata, map())), 'JSON') AS metadata,
mapKeys(mapConcat(obs.metadata, coalesce(t.metadata, map()))) AS metadata_names,
mapValues(mapConcat(obs.metadata, coalesce(t.metadata, map()))) AS metadata_raw_values,
- multiIf(mapContains(obs.metadata, 'resourceAttributes'), 'otel', 'ingestion-api') AS source,
+ multiIf(mapContains(obs.metadata, 'resourceAttributes'), 'otel-dual-write', 'ingestion-api-dual-write') AS source,
'' AS blob_storage_file_path,
byteSize(*) AS event_bytes,
obs.created_at,
diff --git a/worker/src/features/eventPropagation/handleExperimentBackfill.ts b/worker/src/features/eventPropagation/handleExperimentBackfill.ts
index 54825ca4f0..b4e2f8dbb1 100644
--- a/worker/src/features/eventPropagation/handleExperimentBackfill.ts
+++ b/worker/src/features/eventPropagation/handleExperimentBackfill.ts
@@ -207,7 +207,7 @@ export async function getRelevantObservations(
o.usage_pricing_tier_id,
o.usage_pricing_tier_name,
o.metadata,
- multiIf(mapContains(o.metadata, 'resourceAttributes'), 'otel', 'ingestion-api') AS source,
+ multiIf(mapContains(o.metadata, 'resourceAttributes'), 'otel-dual-write-experiments', 'ingestion-api-dual-write-experiments') AS source,
[] as tags,
false AS bookmarked,
false AS public,
@@ -277,7 +277,7 @@ export async function getRelevantTraces(
map() AS cost_details,
0 AS total_cost,
t.metadata,
- multiIf(mapContains(t.metadata, 'resourceAttributes'), 'otel', 'ingestion-api') AS source,
+ multiIf(mapContains(t.metadata, 'resourceAttributes'), 'otel-dual-write-experiments', 'ingestion-api-dual-write-experiments') AS source,
t.tags,
t.bookmarked,
t.public,