avast/datadog4s

`Timer[F]` to allow injecting tags from the response

Opened this issue · 1 comments

Is your feature request related to a problem? Please describe.

I am currently implementing a timer Metric to monitor a http client and the calls that it makes. I want an easy way of tagging http Responses. I like the def time[A](value: F[A], tags: Tag*): F[A] helper method but it literally just ignores the results.

Describe the solution you'd like

I would like a new method such as this def time[A](value: F[A], f: A => Seq[Tag], tags: Tag*): F[A]

Describe alternatives you've considered

Can impl my own version of timer, but I'd rather not! :)

Additional context

N/A

Hi, unfortunately i no longer work for Avast and i am not aware of anyone else in Avast who takes care of this repository, so it might be kind of stranded - at least for now