beam-telemetry / cowboy_telemetry

Telemetry instrumentation for Cowboy
Apache License 2.0
30 stars 9 forks source link

Add user_data to metadata #13

Closed nkmanolovsumup closed 2 years ago

nkmanolovsumup commented 2 years ago

Metrics generated by cowboy_metrics_h conveniently hold a user_data map which allows developers to include arbitrary information in the events from upstream handlers.

As per cowboy's docs:

This can be used for example to add the handler module which was selected by the router

josevalim commented 2 years ago

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart: