[Monitor-Opentelemetry] Expose a way to disable metrics (while keeping instrumentation) in instrumentation options #33012
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor - Exporter
Monitor OpenTelemetry Exporter
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Is your feature request related to a problem? Please describe.
Right now, when we are enabling instrumentation of a SDK through automatic configuration in
useAzureMonitor
we only have one property to enable/disable instrumentation and metrics. However, in some cases (like ours) we do not need metrics and don't want them as they are generating useless costDescribe the solution you'd like

In the instrumentation options when calling
useAzureMonitor
of@azure/monitor-opentelemetry
, I would like to have a property likedisableMetrics
to enable instrumentations but not register metrics, for example :Describe alternatives you've considered
useAzureMonitor
and then register manually instrumentation for the libraryAdditional context
N/A
The text was updated successfully, but these errors were encountered: