Send feedback
Class TelemetryConstants (2.37.0)
Stay organized with collections
Save and categorize content based on your preferences.
2.37.0 (latest)
2.36.0
2.34.0
2.33.3
2.32.3
2.31.4
2.30.0
2.29.1
2.28.2
2.27.1
2.26.4
2.25.2
2.24.3
2.23.0
2.22.0
2.21.3
2.20.2
2.19.2
2.18.5
2.17.6
public class TelemetryConstants
Internal telemetry constants shared between OpenTelemetry tracing and metrics.
Warning: This is intended to be an internal API and is not intended for external use.
This is public solely for implementation purposes and does not promise any backwards
compatibility.
Static Fields
ATTRIBUTES_KEY_DATABASE_ID
public static final String ATTRIBUTES_KEY_DATABASE_ID
Attribute key for the Datastore database ID.
Field Value
Type
Description
String
ATTRIBUTES_KEY_DEFERRED
public static final String ATTRIBUTES_KEY_DEFERRED
Field Value
Type
Description
String
ATTRIBUTES_KEY_DOCUMENT_COUNT
public static final String ATTRIBUTES_KEY_DOCUMENT_COUNT
Field Value
Type
Description
String
ATTRIBUTES_KEY_LIBRARY_VERSION
public static final String ATTRIBUTES_KEY_LIBRARY_VERSION
Field Value
Type
Description
String
ATTRIBUTES_KEY_METHOD
public static final String ATTRIBUTES_KEY_METHOD
Attribute key for the RPC method name (e.g. "Transaction.Run").
Field Value
Type
Description
String
ATTRIBUTES_KEY_MISSING
public static final String ATTRIBUTES_KEY_MISSING
Field Value
Type
Description
String
ATTRIBUTES_KEY_MORE_RESULTS
public static final String ATTRIBUTES_KEY_MORE_RESULTS
Field Value
Type
Description
String
ATTRIBUTES_KEY_PROJECT_ID
public static final String ATTRIBUTES_KEY_PROJECT_ID
Attribute key for the GCP project ID.
Field Value
Type
Description
String
ATTRIBUTES_KEY_READ_CONSISTENCY
public static final String ATTRIBUTES_KEY_READ_CONSISTENCY
Field Value
Type
Description
String
ATTRIBUTES_KEY_RECEIVED
public static final String ATTRIBUTES_KEY_RECEIVED
Field Value
Type
Description
String
ATTRIBUTES_KEY_STATUS
public static final String ATTRIBUTES_KEY_STATUS
Attribute key for the gRPC status code (e.g. "OK", "ABORTED", "UNAVAILABLE").
Field Value
Type
Description
String
ATTRIBUTES_KEY_TRANSACTIONAL
public static final String ATTRIBUTES_KEY_TRANSACTIONAL
Field Value
Type
Description
String
ATTRIBUTES_KEY_TRANSACTION_ID
public static final String ATTRIBUTES_KEY_TRANSACTION_ID
Field Value
Type
Description
String
ATTRIBUTES_KEY_TRANSPORT
public static final String ATTRIBUTES_KEY_TRANSPORT
Field Value
Type
Description
String
METHOD_ALLOCATE_IDS
public static final String METHOD_ALLOCATE_IDS
Field Value
Type
Description
String
METHOD_BEGIN_TRANSACTION
public static final String METHOD_BEGIN_TRANSACTION
Field Value
Type
Description
String
METHOD_COMMIT
public static final String METHOD_COMMIT
Field Value
Type
Description
String
METHOD_LOOKUP
public static final String METHOD_LOOKUP
Field Value
Type
Description
String
METHOD_RESERVE_IDS
public static final String METHOD_RESERVE_IDS
Field Value
Type
Description
String
METHOD_ROLLBACK
public static final String METHOD_ROLLBACK
Field Value
Type
Description
String
METHOD_RUN_AGGREGATION_QUERY
public static final String METHOD_RUN_AGGREGATION_QUERY
Field Value
Type
Description
String
METHOD_RUN_QUERY
public static final String METHOD_RUN_QUERY
Field Value
Type
Description
String
METHOD_TRANSACTION_COMMIT
public static final String METHOD_TRANSACTION_COMMIT
Field Value
Type
Description
String
METHOD_TRANSACTION_RUN
public static final String METHOD_TRANSACTION_RUN
Field Value
Type
Description
String
METRIC_NAME_ATTEMPT_COUNT
public static final String METRIC_NAME_ATTEMPT_COUNT
Metric name for the count of RPC attempts. Note: This does not have the /client prefix to match
Gax's format.
Field Value
Type
Description
String
METRIC_NAME_ATTEMPT_LATENCY
public static final String METRIC_NAME_ATTEMPT_LATENCY
Metric name for the latency of a single RPC attempt. Note: This does not have the /client
prefix to match Gax's format.
Field Value
Type
Description
String
METRIC_NAME_OPERATION_COUNT
public static final String METRIC_NAME_OPERATION_COUNT
Metric name for the count of operations. Note: This does not have the /client prefix to match
Gax's format.
Field Value
Type
Description
String
METRIC_NAME_OPERATION_LATENCY
public static final String METRIC_NAME_OPERATION_LATENCY
Metric name for the total latency of an operation (one full RPC call including retries). Note:
This does not have the /client prefix to match Gax's format.
Field Value
Type
Description
String
METRIC_NAME_TRANSACTION_ATTEMPT_COUNT
public static final String METRIC_NAME_TRANSACTION_ATTEMPT_COUNT
Metric name for the number of attempts a transaction took.
Field Value
Type
Description
String
METRIC_NAME_TRANSACTION_LATENCY
public static final String METRIC_NAME_TRANSACTION_LATENCY
Metric name for the total latency of a transaction.
Field Value
Type
Description
String
SERVICE_NAME
public static final String SERVICE_NAME
Field Value
Type
Description
String
Static Methods
getTransportName(TransportOptions transportOptions)
public static String getTransportName ( TransportOptions transportOptions )
Parameter
Name
Description
transportOptions
com.google.cloud.TransportOptions
Returns
Type
Description
String
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-03-31 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-03-31 UTC."],[],[]]