Provides an interface for metrics recording. The implementer is expected to use an observability
framework, e.g. OpenTelemetry. There should be only one instance of MetricsRecorder per client,
all the methods in this class are expected to be called from multiple threads, hence the
implementation must be thread safe.
[[["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 2025-04-17 UTC."],[[["This webpage provides documentation for the `MetricsRecorder` interface in the Google API Client Library for Java (com.google.api.gax), offering versions ranging from 2.7.1 to the latest 2.63.1."],["The `MetricsRecorder` interface is designed for recording metrics related to RPC attempts and operations, and its implementation should be thread-safe to support multi-threaded environments."],["The library is currently in a Pre-GA stage, meaning it might have limited support and changes may not be compatible with other pre-GA versions."],["The `MetricsRecorder` interface includes methods to record the count and latency of both individual RPC attempts and entire operations, utilizing a `Map` of String attributes for detailed metric analysis."]]],[]]