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 within the Google API Client Library for Java (version 2.50.0 is the current selected version).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetricsRecorder\u003c/code\u003e interface facilitates metrics recording using an observability framework like OpenTelemetry, with all methods designed to be thread-safe for use in multi-threaded environments.\u003c/p\u003e\n"],["\u003cp\u003eThe interface defines methods to record RPC attempt counts (\u003ccode\u003erecordAttemptCount\u003c/code\u003e), RPC attempt latency (\u003ccode\u003erecordAttemptLatency\u003c/code\u003e), operation counts (\u003ccode\u003erecordOperationCount\u003c/code\u003e), and total operation latency (\u003ccode\u003erecordOperationLatency\u003c/code\u003e), each accepting a \u003ccode\u003ecount\u003c/code\u003e or \u003ccode\u003elatency\u003c/code\u003e value and a map of string attributes.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this library is 2.63.1 and this webpage contains the documentation for all prior versions all the way back to 2.7.1.\u003c/p\u003e\n"],["\u003cp\u003eThis library is currently in Beta which means it is subject to change and may have limited support.\u003c/p\u003e\n"]]],[],null,[]]