You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Span Hierarchy and Duration Inconsistency in BigQueryAgentAnalyticsPlugin #4561
This summary organizes Alexander McIntosh's feedback into a formal GitHub issue format, detailing the span hierarchy and duration bugs encountered when using the BigQueryAgentAnalyticsPlugin.
Description
When the BigQueryAgentAnalyticsPlugin is enabled alongside the opentelemetry-instrumentation-vertexai package, the OpenTelemetry span hierarchy becomes corrupted. The plugin appears to inject unexpected spans and re-parent existing ones, leading to broken ancestry and incorrect span durations in observability backends.
Current Behavior (Bug)
When the plugin is enabled, the following issues occur:
Incorrect Hierarchy: An additional llm_request span is injected.
Improper Reparenting: The execute_tool span, which is expected to be a child of call_llm, is being re-parented elsewhere in the tree.
Duration Mismatch: Parent spans are showing shorter durations than their children (e.g., a child span of 12.52s existing inside a parent span of 2.342s). This breaks the logic for synchronous/sequential flow visualization.
Activity
fix: Stop push_span() from corrupting ambient OTel span hierarchy (go…
feat: Add schema auto-upgrade, tool provenance, HITL tracing, and spa…
feat: Add schema auto-upgrade, tool provenance, HITL tracing, and spa…
feat: Add schema auto-upgrade, tool provenance, HITL tracing, and spa…
fix(bigquery-analytics): stop exporting plugin-owned OTel spans (goog…
fix(bigquery-analytics): stop exporting plugin-owned OTel spans (goog…
feat: Add schema auto-upgrade, tool provenance, HITL tracing, and spa…