The documentation advises that a custom collector should inherit from
PrometheusExporter::Server::BaseCollector and the example in the docs
does so. The code example inherits from Collector instead. We found
this seemed to work in development but would behave unreliably in
production. This change updates the example to match the code snippet in
the Readme.
The documentation advises that a custom collector should inherit from
PrometheusExporter::Server::BaseCollector
and the example in the docs does so. The code example inherits fromCollector
instead. We found this seemed to work in development but would behave unreliably in production. This change updates the example to match the code snippet in the Readme.