dashbitco / broadway

Concurrent and multi-stage data ingestion and data processing with Elixir

Home Page:https://elixir-broadway.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telemetry Metrics

isaacsanders opened this issue · comments

Using TelemetryMetrics, I can't seem to take the number of messages from the metadata emitted by Broadway and transform it into a measurement.

Would adding the length of the lists of messages be a reasonable change to the telemetry events emitted by this library?

This should be tackled in TelemetryMetrics. I would allow a function of two arguments to be given to :measurement where the second element is the metadata, so you can compute it as a necessary. A PR there is welcome.