8000 Standard open telemetry fields like token count are not set · Issue #1234 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content
Standard open telemetry fields like token count are not set #1234
Open
@intval

Description

@intval

At the moment, relying on open telemetry tools to monitor token usage is not possible
due to the fact that not all open telemetry standard fields are set by the telemetry module.

Solution:
Include standard telemetry fields on spans, as recommended by the open telemetry standard
https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-events/

For example, the following fields are not set, despite recommended by the otel standard:

gen_ai.request.max_tokens
gen_ai.request.top_p
gen_ai.usage.output_tokens
gen_ai.usage.input_tokens
gen_ai.response.finish_reasons

** happy to send a pr **

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0