@@ -220,7 +220,6 @@ type builtinMetricsTracerFactory struct {
220220 clientBlockingLatencies metric.Float64Histogram
221221 retryCount metric.Int64Counter
222222 connErrCount metric.Int64Counter
223- debugTags metric.Int64Counter
224223}
225224
226225// Returns error only if metricsProvider is of unknown type. Rest all errors are swallowed
@@ -312,26 +311,6 @@ func builtInMeterProviderOptions(project string, opts ...option.ClientOption) ([
312311 )}, nil
313312}
314313
315- func (tf * builtinMetricsTracerFactory ) newAsyncRefreshErrHandler () func () {
316- if ! tf .enabled {
317- return func () {}
318- }
319-
320- asyncRefreshMetricAttrs := tf .clientAttributes
321- asyncRefreshMetricAttrs = append (asyncRefreshMetricAttrs ,
322- attribute .String (metricLabelKeyTag , "async_refresh_dry_run" ),
323- // Table, cluster and zone are unknown at this point
324- // Use default values
325- attribute .String (monitoredResLabelKeyTable , defaultTable ),
326- attribute .String (monitoredResLabelKeyCluster , defaultCluster ),
327- attribute .String (monitoredResLabelKeyZone , defaultZone ),
328- )
329- return func () {
330- tf .debugTags .Add (context .Background (), 1 ,
331- metric .WithAttributes (asyncRefreshMetricAttrs ... ))
332- }
333- }
334-
335314func (tf * builtinMetricsTracerFactory ) createInstruments (meter metric.Meter ) error {
336315 var err error
337316
@@ -421,13 +400,7 @@ func (tf *builtinMetricsTracerFactory) createInstruments(meter metric.Meter) err
421400 return err
422401 }
423402
424- // Create debug_tags
425- tf .debugTags , err = meter .Int64Counter (
426- metricNameDebugTags ,
427- metric .WithDescription ("A counter of internal client events used for debugging." ),
428- metric .WithUnit (metricUnitCount ),
429- )
430- return err
403+ return nil
431404}
432405
433406// builtinMetricsTracer is created one per operation
@@ -577,7 +550,6 @@ func (tf *builtinMetricsTracerFactory) createBuiltinMetricsTracer(ctx context.Co
577550 instrumentClientBlockingLatencies : tf .clientBlockingLatencies ,
578551 instrumentRetryCount : tf .retryCount ,
579552 instrumentConnErrCount : tf .connErrCount ,
580- instrumentDebugTags : tf .debugTags ,
581553
582554 tableName : tableName ,
583555 isStreaming : isStreaming ,
0 commit comments