View Source EctoSparkles.Log (Bonfire v0.9.10-classic-beta.169)

Log Ecto queries, and output warnings for slow or possible n+1 queries

To set up, simply add EctoSparkles.Log.setup(YourApp.Repo) in your app's main Application.start/2 module.

Summary

Functions

Link to this function

check_if_n_plus_1(query)

View Source
Link to this function

format_log(result_key, duration_in_ms, measurements, metadata)

View Source
Link to this function

handle_event(_, measurements, metadata, config)

View Source
Link to this function

inline_params(query, params, repo_adapter \\ Ecto.Adapters.SQL)

View Source
Link to this function

log_query(result_key, duration_in_ms, measurements, metadata)

View Source