Added Kill Switches for Prometheus Custom Recorders

Rishabh Madan requested to merge feature/kill-switch into main

Objective

Added individual kill switches for all custom recorders. This will allow us to control different recorders at service level.

By default, they are disabled. If required, they can be enabled using ENV variables for each service:

    ENABLE_PROMETHEUS_FUNCTION_RECORDER=true
    ENABLE_PROMETHEUS_QUEUE_PRODUCER_RECORDER=true
    ENABLE_PROMETHEUS_QUEUE_BUFFER_RECORDER=true
    ENABLE_PROMETHEUS_QUEUE_CONSUMER_RECORDER=true
    ENABLE_PROMETHEUS_QUEUE_LATENCY_RECORDER=true
    ENABLE_PROMETHEUS_DATABASE_RECORDER=true
    ENABLE_PROMETHEUS_CACHE_RECORDER=true
    ENABLE_PROMETHEUS_EXTERNAL_HTTP_RECORDER=true
    ENABLE_PROMETHEUS_ERROR_RECORDER=true
Edited by Rishabh Madan

Merge request reports