This repository was archived by the owner on May 8, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
google-cloud-bigtable/src
main/java/com/google/cloud/bigtable/data/v2/stub/metrics
test/java/com/google/cloud/bigtable/data/v2/stub/metrics Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020import com .google .api .gax .tracing .ApiTracerFactory ;
2121import com .google .api .gax .tracing .BaseApiTracerFactory ;
2222import com .google .api .gax .tracing .SpanName ;
23- import com .google .cloud .bigtable .data .v2 .internal .csm .attributes .ClientInfo ;
2423import com .google .common .collect .ImmutableMap ;
2524import io .opencensus .stats .StatsRecorder ;
2625import io .opencensus .tags .TagKey ;
Original file line number Diff line number Diff line change 1515 */
1616package com .google .cloud .bigtable .data .v2 .stub .metrics ;
1717
18- import static com .google .cloud .bigtable .data .v2 .stub .metrics .BuiltinMetricsConstants .APP_PROFILE_KEY ;
19- import static com .google .cloud .bigtable .data .v2 .stub .metrics .BuiltinMetricsConstants .BIGTABLE_PROJECT_ID_KEY ;
20- import static com .google .cloud .bigtable .data .v2 .stub .metrics .BuiltinMetricsConstants .CLIENT_NAME_KEY ;
21- import static com .google .cloud .bigtable .data .v2 .stub .metrics .BuiltinMetricsConstants .INSTANCE_ID_KEY ;
2218
2319import com .google .api .core .InternalApi ;
2420import com .google .api .gax .grpc .GaxGrpcProperties ;
5955import io .opencensus .tags .TagValue ;
6056import io .opencensus .tags .Tagger ;
6157import io .opentelemetry .api .OpenTelemetry ;
62- import io .opentelemetry .api .common .Attributes ;
6358import io .opentelemetry .sdk .OpenTelemetrySdk ;
6459import io .opentelemetry .sdk .metrics .InstrumentSelector ;
6560import io .opentelemetry .sdk .metrics .SdkMeterProvider ;
Original file line number Diff line number Diff line change @@ -165,15 +165,17 @@ public class BuiltinMetricsTracerTest {
165165
166166 private int batchElementCount = 2 ;
167167
168- private ClientInfo clientInfo = ClientInfo .builder ()
169- .setInstanceName (InstanceName .of (PROJECT_ID , INSTANCE_ID ))
170- .setAppProfileId (APP_PROFILE_ID )
171- .build ();
172- private Attributes expectedBaseAttributes = Attributes .builder ()
173- .put (BuiltinMetricsConstants .BIGTABLE_PROJECT_ID_KEY , PROJECT_ID )
174- .put (BuiltinMetricsConstants .INSTANCE_ID_KEY , INSTANCE_ID )
175- .put (BuiltinMetricsConstants .APP_PROFILE_KEY , APP_PROFILE_ID )
176- .build ();
168+ private ClientInfo clientInfo =
169+ ClientInfo .builder ()
170+ .setInstanceName (InstanceName .of (PROJECT_ID , INSTANCE_ID ))
171+ .setAppProfileId (APP_PROFILE_ID )
172+ .build ();
173+ private Attributes expectedBaseAttributes =
174+ Attributes .builder ()
175+ .put (BuiltinMetricsConstants .BIGTABLE_PROJECT_ID_KEY , PROJECT_ID )
176+ .put (BuiltinMetricsConstants .INSTANCE_ID_KEY , INSTANCE_ID )
177+ .put (BuiltinMetricsConstants .APP_PROFILE_KEY , APP_PROFILE_ID )
178+ .build ();
177179
178180 private InMemoryMetricReader metricReader ;
179181
You can’t perform that action at this time.
0 commit comments