Hi all!
I’m happy to announce that Telemetry v0.3.0 is out! This release marks the conversion from Elixir to Erlang so that all the libraries and projects on the BEAM can expose useful instrumentation data via Telemetry events!
This version is not compatible with the previous versions, below you will find the description of how to move from 0.2.0 to 0.3.0.
For those who publish
The only change in how the events are emitted is the module name:
# 0.2.0
Telemetry.execute([:my, :event], 20, %{some: :metadata})
# 0.3.0
:telemetry.execute([:my, :event], 20, %{some: :metadata})
For those who subscribe
The attach
and attach_many
have been changed a bit - now they accept an anonymous function as the handler function instead of a module/function pair.
# 0.2.0
Telemetry.attach("my-handler", [:my, :event], EventHandler, :handle, %{some: :config})
# 0.3.0
:telemetry.attach("my-handler", [:my, :event], &EventHandler.handle/4, %{some: :config})
To see all the changes please check out the change log.
Credits
Many thanks to @tristan for all of his help on the rewrite We wouldn’t have made it in 2018 without him
Also, a big thank you to all people supporting and using the project, asking questions and submitting feedback!
Feedback
Please let us know what you think about the release here or on the issue tracker.