From f641f23f507085f5504f8e05f4eb305ff4fa9df7 Mon Sep 17 00:00:00 2001 From: Curtis Robert Date: Thu, 29 Aug 2024 09:15:08 -0700 Subject: [PATCH] [chore][mdatagen] Update schema with information on async telemetry metrics (#10998) #### Description The `async` option was recently added to telemetry metrics, and I believe this should be documented in the metadata schema. I've added a short description about what it means, and its purpose. #### Link to tracking issue Resolves https://github.com/open-telemetry/opentelemetry-collector/issues/10990 --- cmd/mdatagen/metadata-schema.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/mdatagen/metadata-schema.yaml b/cmd/mdatagen/metadata-schema.yaml index 999397a45c6..f746de078fd 100644 --- a/cmd/mdatagen/metadata-schema.yaml +++ b/cmd/mdatagen/metadata-schema.yaml @@ -158,6 +158,9 @@ telemetry: unit: # Required: metric type with its settings. : + # Optional: Whether this metric is asynchronous. If async, a mechanism is required to be able to + # pass in options to the callbacks that are called when the metric is observed. + async: bool # Required: type of number data point values. value_type: # Required for sum metric: whether the metric is monotonic (no negative delta values).