You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the only way to disable metrics in otelfiber is to avoid setting a global metrics provider. This method removes all metrics collection for the entire service, not just the metrics from otelfiber. While this works, it’s not an ideal solution for users who want to selectively disable only the otelfiber metrics while keeping other metrics providers active for the service.
Proposed Solution
Introduce a new configuration option (e.g., WithoutMetrics/WithDisableMetrics: true/false) in otelfiber.Config that will control whether the middleware collects and exposes metrics.
If WithoutMetrics is set to true, otelfiber will not expose any metrics while still allowing other metrics providers to function as expected.
Feature Description
Currently, the only way to disable metrics in otelfiber is to avoid setting a global metrics provider. This method removes all metrics collection for the entire service, not just the metrics from otelfiber. While this works, it’s not an ideal solution for users who want to selectively disable only the otelfiber metrics while keeping other metrics providers active for the service.
Proposed Solution
Additional Context (optional)
No response
Code Snippet (optional)
Checklist:
The text was updated successfully, but these errors were encountered: