autometrics-dev / am

Autometrics Companion CLI app
Apache License 2.0
16 stars 2 forks source link

Log upstream 5xx as errors #145

Closed hatchan closed 12 months ago

hatchan commented 1 year ago

When proxying a call to prometheus or any other service which then returns a 5xx, we should print this as a warn! instead of a debug! that we're currently doing. A upstream status code of 4xx can still be logged using debug!. (Note: unsuccessful calls are currently being logged as error! we might want to set these to the same value as the 5xx)