dkruchinin/sanic-prometheus

Exception on OPTIONS

dnutiu opened this issue · 2 comments

Hello,

I get a KeyError: '__START_TIME__' when I send an OPTIONS request, maybe the library should ignore the OPTIONS req. I'm also using it together with Sanic-Cors.

Made a PR:#23

My PR could be changed to add a list of predefined ignored request/response methods.

Thank you @dnutiu, I've merged your PR with master 👍