endclothing / prometheus_client_php

Prometheus instrumentation library for PHP applications
https://prometheus.io/docs/concepts/metric_types/
Apache License 2.0
150 stars 77 forks source link

Make connection errors debuggable in Redis #57

Open szeber opened 3 years ago

szeber commented 3 years ago

If there is an exception thrown during a redis connection, the actual error is completely hidden by the connectToServer method. This change allows debugging connection errors by placing the RedisException in the StorageException as a previous exception.

LKaemmerling commented 3 years ago

Hey @szeber,

I maintain a new "fork" of the library under a central org: https://github.com/PromPHP/prometheus_client_php. Within this fork your change is partially merged.