AppSignal v1.9.3 Appsignal.Ecto View Source

Integration for logging Ecto queries

To add query logging, add the following to you Repo configuration in config.exs:

config :my_app, MyApp.Repo,
  loggers: [Appsignal.Ecto, Ecto.LogEntry]

On Ecto 3, attach Appsignal.Ecto to Telemetry query events in your application's start/2 function:

Telemetry.attach(
  "appsignal-ecto",
  [:my_app, :repo, :query],
  Appsignal.Ecto,
  :handle_event,
  nil
)

Link to this section Summary

Link to this section Functions

Link to this function

handle_event(event, latency, metadata, config) View Source