Skip to content

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

fix(ingestion): environment to immutable keys (#5736)

Hassieb Pakzadbdb5ddadd90f
diff --git a/worker/src/services/IngestionService/index.ts b/worker/src/services/IngestionService/index.ts
index 074f11e5f7..abe177f92c 100644
--- a/worker/src/services/IngestionService/index.ts
+++ b/worker/src/services/IngestionService/index.ts
@@ -61,13 +61,20 @@ const immutableEntityKeys: {
[TableName.Scores]: (keyof ScoreRecordInsertType)[];
[TableName.Observations]: (keyof ObservationRecordInsertType)[];
} = {
- [TableName.Traces]: ["id", "project_id", "timestamp", "created_at"],
+ [TableName.Traces]: [
+ "id",
+ "project_id",
+ "timestamp",
+ "created_at",
+ "environment",
+ ],
[TableName.Scores]: [
"id",
"project_id",
"timestamp",
"trace_id",
"created_at",
+ "environment",
],
[TableName.Observations]: [
"id",
@@ -75,6 +82,7 @@ const immutableEntityKeys: {
"trace_id",
"start_time",
"created_at",
+ "environment",
],
};