Function addCounterToAxios

  • Add Prometheus counter to Axios instance tracking the number of requests and success/fail responses

    Parameters

    • axiosInstance: Axios

      Axios instance to add the counter to

    • counterConfiguration: CounterConfiguration<string>

    Returns void