Skip to content

Improve trace searchability by adding attributes on agent_run span #1303

@alphinside

Description

@alphinside

** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.

Is your feature request related to a problem? Please describe.
Currently if we want to search trace specific to a combination of user id, app nam, or session id. It's hard to find it. The only way to search it is by session id but it's only applicable on call_llm or tool call. It will be helpful if we can find the agent_run trace quickly instead of finding the call_llm first, then find the parents.

Image
The image above show searchable attribute on cloud trace on call_llm

Image
The image above show searchable attributes on cloud trace on agent_run ( only 1 attribute )

Describe the solution you'd like
Add core run attribute to be searchable in agent_run span : session_id, app_name, user_id, invocation_id

Describe alternatives you've considered
None ATM

Additional context
On ADK v1.2.1

Metadata

Metadata

Assignees

Labels

bot triaged[Bot] This issue is triaged by ADK bottracing[Component] This issue is related to OpenTelemetry tracing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions