PromPHP / prometheus_client_php

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

Redis::ensureOpenConnection should only connect once #73

Closed dirx closed 2 years ago

dirx commented 2 years ago

Hi,

looks like $this->connectionInitialized = true; is not set at the end of method Redis::ensureOpenConnection after successful calling$this->connectToServer()and setting options. This leads to new connects on each call.