ecto_sparkles
v0.1.2
Pages
Modules
EctoSparkles.Log
(ecto_sparkles v0.1.2)
View Source
Log slow Ecto queries
Link to this section
Summary
Functions
check_if_n_plus_1(query)
format_log(result_key, duration_in_ms, measurements, metadata)
format_stacktrace_sliced(stacktrace, starts \\ 2, ends \\ 5)
handle_event(_, measurements, metadata, config)
inline_params(query, params, repo_adapter \\ Ecto.Adapters.SQL)
log_query(result_key, duration_in_ms, measurements, metadata)
setup(repo_module)
Link to this section
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
format_stacktrace_sliced(stacktrace, starts \\ 2, ends \\ 5)
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
Link to this function
setup(repo_module)
View Source