The transformer is exported instead of a route: the path, the auth and whether
the endpoint exists are the application's decisions, and a plugin that mounted
/metrics itself would be taking them.
No onShutdown — a bus subscription is an entry in a set and keeps nothing alive,
which is what rule 7 asks about. Closes green-tea#68.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
A failed request emits three lifecycle events. request:end is the terminal and
universal one, so it is the request counter; request:failed is additional and
gets its own series. Counting both as requests is the double count issue #64
was filed for.
Labels come from route, which the route table bounds, never from name, which
carries the arriving path and is bounded by nothing — issue #65.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
The README carries the cardinality rule up front: label on route, which the
route table bounds, never on name, which nothing bounds. That is the mistake
issue #65 was filed for and the one a collector makes by default.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>