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-09-04 UTC."],[[["\u003cp\u003eThe webpage provides documentation for the \u003ccode\u003eMetricsRecorder\u003c/code\u003e interface in the Google API Client Libraries for Java, covering multiple versions from 2.7.1 up to the latest, 2.63.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMetricsRecorder\u003c/code\u003e is designed for recording metrics using an observability framework, such as OpenTelemetry, and requires a single, thread-safe instance per client.\u003c/p\u003e\n"],["\u003cp\u003eThis interface includes methods for recording the count and latency of both RPC attempts (\u003ccode\u003erecordAttemptCount\u003c/code\u003e, \u003ccode\u003erecordAttemptLatency\u003c/code\u003e) and operations (\u003ccode\u003erecordOperationCount\u003c/code\u003e, \u003ccode\u003erecordOperationLatency\u003c/code\u003e), each accepting a count or latency value and a map of string attributes.\u003c/p\u003e\n"],["\u003cp\u003eThe library is currently in a Pre-GA (Generally Available) stage, meaning it may have limited support and may undergo changes that are not backwards compatible with other pre-GA versions.\u003c/p\u003e\n"],["\u003cp\u003eThe current version of this content is referencing version 2.42.0 of the documentation, even though there are newer versions available.\u003c/p\u003e\n"]]],[],null,[]]