ScoutApm.Instruments.EctoTelemetry (scout_apm v2.0.0)

Copy Markdown

Summary

Functions

attach(repo_module)

Attaches an event handler for Ecto queries.

Takes a fully namespaced Ecto.Repo module as the only argument. Example:

ScoutApm.Instruments.EctoTelemetry.attach(MyApp.Repo)

handle_event(query_event, value, metadata, config)