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 within the Google API Client Library for Java (gax), with the latest version being 2.63.1, and lists many previous versions.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMetricsRecorder\u003c/code\u003e is an interface designed for recording metrics and is expected to be implemented using an observability framework like OpenTelemetry.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetricsRecorder\u003c/code\u003e interface offers 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).\u003c/p\u003e\n"],["\u003cp\u003eThis library is in a Pre-GA stage, meaning it might have limited support and changes could be incompatible with other pre-GA versions.\u003c/p\u003e\n"],["\u003cp\u003eAll the methods found within the \u003ccode\u003eMetricsRecorder\u003c/code\u003e interface are designed to be thread-safe, as multiple threads may be calling them.\u003c/p\u003e\n"]]],[],null,[]]