adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Need support standard gen_ai span attributions

Open evanlowe opened this issue 1 year ago • 3 comments

Nice to propose an issue to ADK intelligent developers!

During using ADK to develop our agent projects and put the tracing data in some online platforms (such as Volcengine APMPlus and Cozeloop), the data related to model request/response & tools request/response cannot be correctly parsing, as the current attribution prefix of spans is gcp.vertex rather than standard Opentelemetry Generative AI naming method (i.e., prefix is gen_ai).

Referenced image from https://opentelemetry.io/blog/2024/otel-generative-ai/

Image

Kindly ask: is there any plan to support this in the near future?

------- 8< -------- BYW: Thanks Google ADK's contribution to agent world!

evanlowe avatar Jul 08 '25 01:07 evanlowe

@hangfei, please see my PR aiming to solve this.

krisztianfekete avatar Aug 18 '25 08:08 krisztianfekete

@jawoszek PTAL the PR. Thanks.

hangfei avatar Nov 08 '25 04:11 hangfei

As discussed in https://github.com/google/adk-python/pull/2575 - tracing in ADK should be compliant with OTel semantic convention now. I'm closing this - but if you notice anything missing, please let us know!

jawoszek avatar Nov 14 '25 21:11 jawoszek