10000 Support more OpenTelemetry GenAI span attributes and evnets · Issue #356 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content
Support more OpenTelemetry GenAI span attributes and evnets #356
@soundTricker

Description

@soundTricker

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
[Problem]

Currently, ADK use OpenTelemetry to send tracing telemetry data to monitoring service.
But the information currently sent is limited and does not follow theOpenTelemetry Semantics.

For example, on Cloud Trace, it is shown that it is a GenAI span, but the number of input/output tokens is not shown.

Image

Also, the current discussion in OpenTelemetry is moving towards sending each message and choice as an event, so we should align with that.

Refs:
https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/
https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-events

Describe the solution you'd like

Support OpenTelemetry GenAI Span Attributes and Events.

Additional context
As a separate discussion, ADK is currently using CloudTraceSpanExporter, but the Cloud Trace API has strict limitations on the amount of data that can be sent, making it unsuitable for use with GenAI. I think it would be better to change this to use the OpenTelemetry Protocol (OTLP), but that's a separate issue.

Metadata

Metadata

Assignees

Labels

coreIssues related to the core interface and implementation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0