Class TelemetryMetrics
java.lang.Object
com.google.cloud.bigquery.storage.v1.TelemetryMetrics
Enables export of metrics to OpenTelemetry. Since it keeps track of whether metrics are
enabled/disabled, it simplifies calling code by removing the need for tedious if clauses to check
whether metrics are enabled/disabled. Also, GlobalOpenTelemetry.get() should only be called after
client application has already installed the necessary meter provider.
-
Method Summary
Modifier and TypeMethodDescriptionvoidrecordConnectionEnd(String errorCode) voidvoidvoidrecordNetworkLatency(Duration latency) voidrecordResponse(long messageSize, long rowCount, String errorCode, boolean isRetry) voidrefreshOpenTelemetryTableNameAttributes(String tableName)
-
Method Details
-
refreshOpenTelemetryTableNameAttributes
-
recordConnectionStart
public void recordConnectionStart() -
recordConnectionStartWithRetry
public void recordConnectionStartWithRetry() -
recordConnectionEnd
-
recordNetworkLatency
-
recordResponse
-