fix: remove redundant MetricsCapture from trace_call by waiho-gumloop · Pull Request #16495 · googleapis/google-cloud-python

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

The bare MetricsCapture() inside trace_call creates a MetricsTracer
without project_id or instance_id. Since every caller already provides
its own MetricsCapture(resource_info) with correct labels, the one
inside trace_call is redundant and records operation metrics with
incomplete resource labels on every operation.

Fixes googleapis#16173

gemini-code-assist[bot]