oysteins10

Results 2 comments of oysteins10

Hey! I took a look in the prometheus middleware where it constructs the Info object. The middleware only grabs the headers and status code and constructs an empty bodied response...

I assume you can do something like this: ```python def instrumentator(info: Info): if some_condition: # Dont do anything return # Otherwise we increment COUNT_METRIC.inc() ```