NewRelicAddons v0.1.0 NewRelicAddons.Ecto View Source

Provides Ecto instrumentation based on telemetry.

Features

  • reports database operations with repo, table and operation name
  • reports database operations with SQL statements visible within transaction traces
  • reports queue & decode events visible next to relevant query events in transaction traces

Usage

You just need to attach telemetry event handler in application.ex:

:telemetry.attach(
  "my-app-ecto",
  [:my_app, :repo, :query],
  &NewRelicAddons.Ecto.handle_event/4,
  []
)

Remember to replace the :my_app with your OTP app name and :repo with underscored repo name.