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\u003eThis webpage provides documentation for the \u003ccode\u003eMetricsRecorder\u003c/code\u003e interface in the Google API Client Libraries for Java, offering a range of 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 to work with observability frameworks like OpenTelemetry, intended for recording metrics and ensuring that the implementation is thread-safe for multi-threaded access within a client.\u003c/p\u003e\n"],["\u003cp\u003eThe interface includes methods to record the count and latency of RPC attempts, as well as the count and total latency of operations, each with customizable string attributes.\u003c/p\u003e\n"],["\u003cp\u003eThe library is currently in a pre-GA (Generally Available) stage, which may have limited support and could undergo changes that may be incompatible with previous pre-GA versions.\u003c/p\u003e\n"],["\u003cp\u003eThe parameter specifications of the \u003ccode\u003eMetricsRecorder\u003c/code\u003e methods include data types such as \u003ccode\u003elong\u003c/code\u003e and \u003ccode\u003edouble\u003c/code\u003e for numeric values, and \u003ccode\u003eMap<String, String>\u003c/code\u003e for attributes, each with their own parameter name.\u003c/p\u003e\n"]]],[],null,[]]