Skip to content

Duplicated OTEL trace in Agent Runtime with BQAA plugin #5939

@guillaumeblaquiere

Description

@guillaumeblaquiere

#Description#

We are experiencing trace duplication in the Agent Runtime trace section when the bq_plugin is active in the App. When the plugin is commented out (deactivated), the traces appear normal, suggesting an issue with how the plugin generates or interacts with OpenTelemetry traces.

##Configuration##

App ID: 1361960655279620096
Environment Variables:
GOOGLE_GENAI_USE_VERTEXAI=TRUE
BQ_AGENT_GOOGLE_CLOUD_PROJECT=c4-blaquiere-sbx
BQ_AGENT_ANALYTICS_DATASET_ID=agent_data
BQ_AGENT_EVENTS_TABLE_ID=agent_engine_data
GOOGLE_CLOUD_AGENT_ENGINE_ENABLE_TELEMETRY=true
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true

##Deployment Command##

adk deploy agent_engine \
                   --project=$PROJECT_ID \
                   --region=$LOCATION_ID \
                   --display_name="Test_ADK_guillaume" \
                   --requirements_file=requirements.txt \
                   --adk_app_object=app \
                   --agent_engine_id="projects/424469508234/locations/europe-west1/reasoningEngines/1361960655279620096" \
                   root_agent

##Relevant Code Snippet##

app = App(
    name="root_agent",
    root_agent=root_agent,
    plugins=[bq_plugin]
)

#Observed Behavior#

When the bq_plugin is included in the App, extra traces are generated in the Agent Runtime trace section compared to when the plugin is deactivated

Image Image

How often has this issue occurred?:

  • Always (100%)

Metadata

Metadata

Labels

tracing[Component] This issue is related to OpenTelemetry tracing

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions