-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
bot triaged[Bot] This issue is triaged by ADK bot[Bot] This issue is triaged by ADK bottracing[Component] This issue is related to OpenTelemetry tracing[Component] This issue is related to OpenTelemetry tracing
Description
adk-python/src/google/adk/telemetry.py
Lines 203 to 206 in 3f9f773
span.set_attribute( | |
'gen_ai.usage.output_tokens', | |
llm_response.usage_metadata.total_token_count, | |
) |
'usage_metadata.total_token_count' is set as 'output_tokens' which is very confusing.
I'm not sure if this is a bug or intentional but either way, total tokens should be set as 'total_tokens' or 'candidates_token_count' should be set as 'output_tokens'.
Metadata
Metadata
Assignees
Labels
bot triaged[Bot] This issue is triaged by ADK bot[Bot] This issue is triaged by ADK bottracing[Component] This issue is related to OpenTelemetry tracing[Component] This issue is related to OpenTelemetry tracing