-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Networking & Observability
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The ReportingPolicy enum is used in ScalarMetricOptions to conditionally export metrics, but ScalarMetricOptions::reportingPolicy is only checked before exporting metrics via OpenTelemetry right now. It is not checked before exporting serverStatus metrics in the OtelMetricsServerStatusAdapter. As a result, reporting of the same metric in serverStatus vs. OTel can be inconsistent.
Update the metrics API to conditionally export serverStatus metrics according to the provided ReportingPolicy.