Skip to content

Commit 8b9a55f

Browse files
gustavocidornelaswhoseoyster
authored andcommitted
Completes OPEN-5843 Request level timestamp should be the start time
1 parent 1414cb3 commit 8b9a55f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openlayer/tracing/tracer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def create_step(
7878
"latencyColumnName": "latency",
7979
"costColumnName": "cost",
8080
"numOfTokenColumnName": "tokens",
81+
"timestampColumnName": "inferenceTimestamp",
8182
}
8283
if isinstance(new_step, steps.ChatCompletionStep):
8384
config.update(
@@ -155,6 +156,7 @@ def process_trace_for_upload(
155156

156157
trace_data = {
157158
**input_variables,
159+
"inferenceTimestamp": root_step.start_time,
158160
"output": root_step.output,
159161
"groundTruth": root_step.ground_truth,
160162
"latency": root_step.latency,

0 commit comments

Comments
 (0)