[Core] Add span metrics for model_forward, scheduler and sampler time (#7089)
This commit is contained in:
@@ -114,3 +114,5 @@ def test_traces(trace_service):
|
||||
SpanAttributes.LLM_LATENCY_TIME_TO_FIRST_TOKEN) == ttft
|
||||
e2e_time = metrics.finished_time - metrics.arrival_time
|
||||
assert attributes.get(SpanAttributes.LLM_LATENCY_E2E) == e2e_time
|
||||
assert attributes.get(SpanAttributes.LLM_LATENCY_TIME_IN_SCHEDULER
|
||||
) == metrics.scheduler_time
|
||||
|
||||
Reference in New Issue
Block a user