markus
markus copied to clipboard
Markus is a Python library for generating metrics
I often want to decorate functions with `timer_decorator`, but want to provide different tags depending on the returned result or error. What if we added `on_return` and `on_error` transform functions...
Everyone that I've talked to that uses Markus is also using pytest and has to add something like this to their `conftest.py`: ``` from markus.testing import MetricsMock @pytest.fixture def metricsmock():...
One of the things I want Markus to do is make it easier to document the metrics generated by some module. What metrics does this module publish? What type are...
It might be interesting to support opentelemetry: https://opentelemetry-python.readthedocs.io/en/stable/index.html If the shape of that is too different, it probably doesn't make sense to do in Markus.
We currently have no tests for `markus.configure` or the backends. We should probably add at least some basic ones. * test `markus.configure` with zero, one, and multiple backends does the...
Markus should have a sphinx extension that makes it easier to document the keys in use, link to them in the docs, and spit out a listing of all the...
Would it make sense that for a given metric A, using tags, to create additional metrics for each tag? For example, for calls: ``` incr('A') incr('A', tags=dict(tag1=value1, tag2=value2)) incr('A', tags=dict(tag2=value2))...
What timezone should LoggingMetrics use for timestamps? Why? Should it be configurable? Why? What does the Python logging module do for timestamps and timezones?
The Datadog and logging backends support tags, but the API for doing tags is a little weird and there's nothing that sanitizes tag keys and values. This issue covers rethinking...