smallstep / certificates

🛡️ A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH.
https://smallstep.com/certificates
Apache License 2.0
6.5k stars 423 forks source link

fix: Also instrument webhooks that do not reach the wire #1742

Closed azazeal closed 6 months ago

azazeal commented 6 months ago

This PR refactors the webhook-related instrumentation so that it captures errors in cases where the request's body does not end up hitting the wire. It also registers the forgotten webhook-related instruments to the Prometheus endpoint.