Capturing Telemetry for a Dynamic Repo

We’re (finally) looking at adding telemetry to our application, and we have recently added a necessary, but somewhat pathological case of dynamic repos (for Ecto.Adapters.SQLite3).

All of the documentation examples for attaching telemetry handlers assume a static repo with no examples of attaching a handler for a dynamic repo, much less an unnamed (name: nil) dynamic repo.

Are there recommendations or examples that I am missing, or does Ecto need such examples? Does anyone have any suggestions, or am I overthinking this?

3 Likes