Class TelemetryMetrics (3.23.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclassTelemetryMetrics
Enables export of metrics to OpenTelemetry. Since it keeps track of whether metrics are
enabled/disabled, it simplifies calling code by removing the need for tedious if clauses to check
whether metrics are enabled/disabled. Also, GlobalOpenTelemetry.get() should only be called after
client application has already installed the necessary meter provider.
[[["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 2026-03-14 UTC."],[],[]]