jenkinsci / prometheus-plugin

Jenkins Prometheus Plugin
https://plugins.jenkins.io/prometheus/
Apache License 2.0
184 stars 151 forks source link

Fix initilization potential deadlock #637

Closed Dohbedoh closed 8 months ago

Dohbedoh commented 8 months ago

Fixes https://github.com/jenkinsci/prometheus-plugin/issues/635. It should at least guarantee that loading the extension (that would call the constructor) does register the collector.

Changes proposed

Checklist

Notify

@Waschndolos

Waschndolos commented 8 months ago

Thank you for the PR. I'll test it in our Companies Test Instance tomorrow and perform a Release the upcoming days

Waschndolos commented 7 months ago

Appears to work as before (as expected :))