Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat: add otel attribute parsing for google adk (#6736)

Jannik Maierhöfer515186e9a2bd
diff --git a/web/src/features/otel/server/index.ts b/web/src/features/otel/server/index.ts
index f3b3de6926..61d37d057f 100644
--- a/web/src/features/otel/server/index.ts
+++ b/web/src/features/otel/server/index.ts
@@ -153,6 +153,16 @@ const extractInputAndOutput = (
return { input: eventInput || input, output: eventOutput || output };
}
+ // Google Vertex AI Agent-Developer-Kit (ADK)
+ input = attributes["gcp.vertex.agent.llm_request"];
+ output = attributes["gcp.vertex.agent.llm_response"];
+ if (input || output) {
+ return {
+ input: input,
+ output: output,
+ };
+ }
+
// Logfire uses `prompt` and `all_messages_events` property on spans
input = attributes["prompt"];
output = attributes["all_messages_events"];