Implement tagged metrics#17
Implement tagged metrics#17lucasdicioccio wants to merge 2 commits intohaskell-github-trust:masterfrom
Conversation
|
Thanks for putting this together. I've added some high-level thoughts below. When you read through these it might help having this example use case in mind: the user wants to count the number of HTTP status codes for each URL requested in some (Haskell) web server. The counter would be used as follows (in pseudo-ish code):
The latter suggests that we add new counter, etc. types that have some internal structure (e.g. they might internally be implemented as maps of regular counters). |
|
Sorry for the delay, pretty busy :-). So far I went for the simplest diff I could imagine for lack of time and a goal to keep the overhead minimal. Even if we iterate, I still want to keep the ability to make a Then, regarding the |
|
I think supporting
|
|
Hi, it's me again. |
This is an experiment to address #6 and could help for #12 .
This change uses a non-empty list of tags instead of single tag name for metrics.
The main design choice to figure out is whether tags should be key/values or values only. In this experiment I use values only.
Pros:
Cons: