Skip to content

Instantly share code, notes, and snippets.

View MrYawe's full-sized avatar
🏠
Working from home

Yannis Weishaupt MrYawe

🏠
Working from home
View GitHub Profile
@joshnuss
joshnuss / application.ex
Last active October 5, 2021 09:18
Setup Appsignal telemetry for Oban
# inside Application.start
:telemetry.attach_many("appsignal-oban", [
[:oban, :job, :start],
[:oban, :job, :stop],
[:oban, :job, :exception]
], &MyApp.Appsignal.Oban.handle_event/4, nil)
# also start a Registry in Application.start to track Appsignal's "spans"
children = [
# ....