Y
Hacker News
new
|
ask
|
show
|
jobs
by
voicedYoda
361 days ago
Well done. Couple quick notes, move to a logger instead of using IO.puts. Also consider adding OTel.
2 comments
solid_fuel
361 days ago
I'll second this, just using the built in Logger [0] and Telemetry [1] applications would be fine, opentelemetry or anything else can be added to the telemetry hooks easily to export the metrics later.
[0]
https://hexdocs.pm/logger/1.18.4/Logger.html
[1]
https://hexdocs.pm/telemetry/readme.html
link
dahrkael
361 days ago
I use Logger through all the project except for the table pretty print. Telemetry is optionally available in prometheus and html formats:
https://github.com/Dahrkael/ExTracker/tree/master/lib/ex_tra...
link
ai-christianson
361 days ago
What's your favorite otel sink?
link
[0] https://hexdocs.pm/logger/1.18.4/Logger.html [1] https://hexdocs.pm/telemetry/readme.html