🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(core): add start time to patches of ingestion events (#605)
Max Deichmann6ed893de181e
diff --git a/fern/apis/server/definition/generations.yml b/fern/apis/server/definition/generations.ymlindex 8da33160f7..c06044a1f5 100644--- a/fern/apis/server/definition/generations.yml+++ b/fern/apis/server/definition/generations.yml@@ -23,6 +23,7 @@ types:generationId: stringtraceId: optional<string>name: optional<string>+ startTime: optional<datetime>endTime: optional<datetime>completionStartTime: optional<datetime>model: optional<string>diff --git a/fern/apis/server/definition/span.yml b/fern/apis/server/definition/span.ymlindex 4bed9f949b..d8781d8366 100644--- a/fern/apis/server/definition/span.yml+++ b/fern/apis/server/definition/span.yml@@ -23,6 +23,7 @@ types:properties:spanId: stringtraceId: optional<string>+ startTime: optional<datetime>endTime: optional<datetime>name: optional<string>metadata: optional<unknown>diff --git a/generated/openapi-server/openapi.yml b/generated/openapi-server/openapi.ymlindex 74469ae84c..2cd5195e4a 100644--- a/generated/openapi-server/openapi.yml+++ b/generated/openapi-server/openapi.yml@@ -1411,6 +1411,10 @@ components:name:type: stringnullable: true+ startTime:+ type: string+ format: date-time+ nullable: trueendTime:type: stringformat: date-time@@ -1630,6 +1634,10 @@ components:traceId:type: stringnullable: true+ startTime:+ type: string+ format: date-time+ nullable: trueendTime:type: stringformat: date-timediff --git a/generated/postman/collection.json b/generated/postman/collection.jsonindex 6d9000e24a..bc2f539580 100644--- a/generated/postman/collection.json+++ b/generated/postman/collection.json@@ -329,7 +329,7 @@"auth": null,"body": {"mode": "raw",- "raw": "{\n \"generationId\": \"example\",\n \"traceId\": \"example\",\n \"name\": \"example\",\n \"endTime\": \"1994-11-05T13:15:30Z\",\n \"completionStartTime\": \"1994-11-05T13:15:30Z\",\n \"model\": \"example\",\n \"modelParameters\": {\n \"example\": \"example\"\n },\n \"prompt\": \"UNKNOWN\",\n \"version\": \"example\",\n \"metadata\": \"UNKNOWN\",\n \"completion\": \"UNKNOWN\",\n \"usage\": {\n \"promptTokens\": 0,\n \"completionTokens\": 0,\n \"totalTokens\": 0\n },\n \"level\": \"DEBUG\",\n \"statusMessage\": \"example\"\n}",+ "raw": "{\n \"generationId\": \"example\",\n \"traceId\": \"example\",\n \"name\": \"example\",\n \"startTime\": \"1994-11-05T13:15:30Z\",\n \"endTime\": \"1994-11-05T13:15:30Z\",\n \"completionStartTime\": \"1994-11-05T13:15:30Z\",\n \"model\": \"example\",\n \"modelParameters\": {\n \"example\": \"example\"\n },\n \"prompt\": \"UNKNOWN\",\n \"version\": \"example\",\n \"metadata\": \"UNKNOWN\",\n \"completion\": \"UNKNOWN\",\n \"usage\": {\n \"promptTokens\": 0,\n \"completionTokens\": 0,\n \"totalTokens\": 0\n },\n \"level\": \"DEBUG\",\n \"statusMessage\": \"example\"\n}","options": {"raw": {"language": "json"@@ -692,7 +692,7 @@"auth": null,"body": {"mode": "raw",- "raw": "{\n \"spanId\": \"example\",\n \"traceId\": \"example\",\n \"endTime\": \"1994-11-05T13:15:30Z\",\n \"name\": \"example\",\n \"metadata\": \"UNKNOWN\",\n \"input\": \"UNKNOWN\",\n \"output\": \"UNKNOWN\",\n \"level\": \"DEBUG\",\n \"version\": \"example\",\n \"statusMessage\": \"example\"\n}",+ "raw": "{\n \"spanId\": \"example\",\n \"traceId\": \"example\",\n \"startTime\": \"1994-11-05T13:15:30Z\",\n \"endTime\": \"1994-11-05T13:15:30Z\",\n \"name\": \"example\",\n \"metadata\": \"UNKNOWN\",\n \"input\": \"UNKNOWN\",\n \"output\": \"UNKNOWN\",\n \"level\": \"DEBUG\",\n \"version\": \"example\",\n \"statusMessage\": \"example\"\n}","options": {"raw": {"language": "json"diff --git a/src/features/public-api/server/ingestion-api-schema.ts b/src/features/public-api/server/ingestion-api-schema.tsindex 54f5794741..a16ac481b1 100644--- a/src/features/public-api/server/ingestion-api-schema.ts+++ b/src/features/public-api/server/ingestion-api-schema.ts@@ -30,6 +30,7 @@ export const SpanPatchSchema = z.object({spanId: z.string(),traceId: z.string().nullish(),name: z.string().nullish(),+ startTime: z.string().datetime({ offset: true }).nullish(),endTime: z.string().datetime({ offset: true }).nullish(),metadata: jsonSchema.nullish(),input: jsonSchema.nullish(),@@ -72,6 +73,7 @@ export const GenerationPatchSchema = z.object({generationId: z.string(),traceId: z.string().nullish(),name: z.string().nullish(),+ startTime: z.string().datetime({ offset: true }).nullish(),endTime: z.string().datetime({ offset: true }).nullish(),completionStartTime: z.string().datetime({ offset: true }).nullish(),model: z.string().nullish(),