dminuoso / servant-prometheus

Automatically produce per-endpoint monitoring for servant apps
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

Give an API Endpoint its own data type #12

Open jessekempf opened 5 years ago

jessekempf commented 5 years ago

This builds on #11.

We call a ([Text], Method) an Endpoint and reconcile the HasMethod typeclass with the one in haskell-servant/servant-ekg#9. For the time being, we also drop support for producing the "unknown" metric since the next change is going to mine Endpoints for richer metric labels and more idiomatic metric names, and there's no obvious unknown-Endpoint value.