Send feedback
Class BigQueryTelemetryTracer (2.65.0)
Stay organized with collections
Save and categorize content based on your preferences.
2.65.0 (latest)
2.62.0
2.61.0
2.60.0
2.59.0
2.58.0
2.57.2
2.56.0
2.55.3
2.54.2
2.53.0
2.52.0
2.51.0
2.50.1
2.49.0
2.48.1
2.47.0
2.46.0
2.45.0
2.44.0
2.43.3
2.42.3
2.41.0
2.40.3
2.39.1
2.38.2
2.37.2
2.36.0
2.35.0
2.34.2
2.33.2
public final class BigQueryTelemetryTracer
BigQuery Telemetry class that stores generic telemetry attributes and values
Static Fields
BQ_GCP_CLIENT_ARTIFACT
public static final String BQ_GCP_CLIENT_ARTIFACT
Field Value
Type
Description
String
BQ_GCP_CLIENT_REPO
public static final String BQ_GCP_CLIENT_REPO
Field Value
Type
Description
String
BQ_GCP_CLIENT_SERVICE
public static final String BQ_GCP_CLIENT_SERVICE
Field Value
Type
Description
String
ERROR_TYPE
public static final AttributeKey<String> ERROR_TYPE
Field Value
Type
Description
io.opentelemetry.api.common.AttributeKey <String >
EXCEPTION_TYPE
public static final AttributeKey<String> EXCEPTION_TYPE
Field Value
Type
Description
io.opentelemetry.api.common.AttributeKey <String >
GCP_CLIENT_ARTIFACT
public static final AttributeKey<String> GCP_CLIENT_ARTIFACT
Field Value
Type
Description
io.opentelemetry.api.common.AttributeKey <String >
GCP_CLIENT_REPO
public static final AttributeKey<String> GCP_CLIENT_REPO
Field Value
Type
Description
io.opentelemetry.api.common.AttributeKey <String >
GCP_CLIENT_SERVICE
public static final AttributeKey<String> GCP_CLIENT_SERVICE
Field Value
Type
Description
io.opentelemetry.api.common.AttributeKey <String >
GCP_CLIENT_VERSION
public static final AttributeKey<String> GCP_CLIENT_VERSION
Field Value
Type
Description
io.opentelemetry.api.common.AttributeKey <String >
GCP_RESOURCE_DESTINATION_ID
public static final AttributeKey<String> GCP_RESOURCE_DESTINATION_ID
Field Value
Type
Description
io.opentelemetry.api.common.AttributeKey <String >
RPC_SYSTEM_NAME
public static final AttributeKey<String> RPC_SYSTEM_NAME
Field Value
Type
Description
io.opentelemetry.api.common.AttributeKey <String >
STATUS_MESSAGE
public static final AttributeKey<String> STATUS_MESSAGE
Field Value
Type
Description
io.opentelemetry.api.common.AttributeKey <String >
URL_DOMAIN
public static final AttributeKey<String> URL_DOMAIN
Field Value
Type
Description
io.opentelemetry.api.common.AttributeKey <String >
URL_TEMPLATE
public static final AttributeKey<String> URL_TEMPLATE
Field Value
Type
Description
io.opentelemetry.api.common.AttributeKey <String >
Static Methods
addCommonAttributeToSpan(Span span)
public static void addCommonAttributeToSpan ( Span span )
Parameter
Name
Description
span
io.opentelemetry.api.trace.Span
addExceptionToSpan(Exception e, Span span)
public static void addExceptionToSpan ( Exception e , 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 on ErrorTypeUtil#getClientErrorType(Exception)
Parameters
Name
Description
e
Exception
span
io.opentelemetry.api.trace.Span
addServerErrorResponseToSpan(GoogleJsonResponseException errorResponse, Span span)
public static void addServerErrorResponseToSpan ( GoogleJsonResponseException errorResponse , 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
Parameters
Name
Description
errorResponse
com.google.api.client.googleapis.json.GoogleJsonResponseException
span
io.opentelemetry.api.trace.Span
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-25 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-25 UTC."],[],[]]