add gen_ai.main_agent.name for nested agent and workflow inocations - #385
Draft
lmolkova wants to merge 1 commit into
Draft
add gen_ai.main_agent.name for nested agent and workflow inocations#385lmolkova wants to merge 1 commit into
lmolkova wants to merge 1 commit into
Conversation
…cations Add gen_ai.main_agent.name to invoke_agent and invoke_workflow spans and duration metrics to identify the outermost local agent or workflow an operation runs within, distinguishing top-level invocations from nested ones. Wire it through the ADK reference scenario.
Pull request dashboard statusWaiting on the author · refreshed 2026-08-20 16:07 UTC Move out of draft to request review. Status above doesn't look right?
|
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #300
This is an alternative to #355 and complements #270
In #270 we're adding a notion of main agent (local within the process). The root_operation name is pretty much the same except it's not resource/entity attribute, but still identifies the thing this operation is nested under.
Is there a conflict with entity? No:
Are we blurring the line between agent and workflow Yes:
invoke_workflowto operation name on aninvoke_agentspan and reporting its metrics as invoke_agent metrics. To follow up on Clarify workflow span criteria and add reference scenarios for langchain and openai agents #354Motivation
Checklist
changelog.d/for any change to the conventions that a consumer would care about. Editorial changes (typos, pure rewording, repo tooling) don't need an entry.See [CONTRIBUTING.md]