Class BigQueryTelemetryTracer
java.lang.Object
com.google.cloud.bigquery.telemetry.BigQueryTelemetryTracer
BigQuery Telemetry class that stores generic telemetry attributes and values
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final io.opentelemetry.api.common.AttributeKey<String>static final io.opentelemetry.api.common.AttributeKey<String>static final io.opentelemetry.api.common.AttributeKey<String>static final io.opentelemetry.api.common.AttributeKey<String>static final io.opentelemetry.api.common.AttributeKey<String>static final io.opentelemetry.api.common.AttributeKey<String>static final io.opentelemetry.api.common.AttributeKey<String>static final io.opentelemetry.api.common.AttributeKey<String>static final io.opentelemetry.api.common.AttributeKey<String>static final io.opentelemetry.api.common.AttributeKey<String>static final io.opentelemetry.api.common.AttributeKey<String> -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCommonAttributeToSpan(io.opentelemetry.api.trace.Span span) static voidaddExceptionToSpan(Exception e, io.opentelemetry.api.trace.Span span) Adds the following error attributes to trace span: STATUS_MESSAGE: the name of the exception + message if available EXCEPTION_TYPE: full name of exception ex: java.net.UnknownHostException ERROR_TYPE: mapped string based onErrorTypeUtil.getClientErrorType(Exception)static voidaddServerErrorResponseToSpan(com.google.api.client.googleapis.json.GoogleJsonResponseException errorResponse, io.opentelemetry.api.trace.Span span) Adds the following error attributes to trace span from GoogleJsonResponseException: STATUS_MESSAGE: user readable error message ERROR_TYPE: reason if available otherwise the status code
-
Field Details
-
BQ_GCP_CLIENT_SERVICE
- See Also:
-
BQ_GCP_CLIENT_REPO
- See Also:
-
BQ_GCP_CLIENT_ARTIFACT
- See Also:
-
GCP_CLIENT_SERVICE
-
GCP_CLIENT_VERSION
-
GCP_CLIENT_REPO
-
GCP_CLIENT_ARTIFACT
-
GCP_RESOURCE_DESTINATION_ID
-
RPC_SYSTEM_NAME
-
ERROR_TYPE
-
EXCEPTION_TYPE
-
STATUS_MESSAGE
-
URL_TEMPLATE
-
URL_DOMAIN
-
-
Method Details
-
addCommonAttributeToSpan
public static void addCommonAttributeToSpan(io.opentelemetry.api.trace.Span span) -
addExceptionToSpan
Adds the following error attributes to trace span: STATUS_MESSAGE: the name of the exception + message if available EXCEPTION_TYPE: full name of exception ex: java.net.UnknownHostException ERROR_TYPE: mapped string based onErrorTypeUtil.getClientErrorType(Exception) -
addServerErrorResponseToSpan
public static void addServerErrorResponseToSpan(com.google.api.client.googleapis.json.GoogleJsonResponseException errorResponse, io.opentelemetry.api.trace.Span span) Adds the following error attributes to trace span from GoogleJsonResponseException: STATUS_MESSAGE: user readable error message ERROR_TYPE: reason if available otherwise the status code
-