Class BigQueryTelemetryTracer (2.65.0)

public final class BigQueryTelemetryTracer

BigQuery Telemetry class that stores generic telemetry attributes and values

Inheritance

java.lang.Object > BigQueryTelemetryTracer

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