languages / elixir / configuration / only-log-slow-ecto-queries

Elixir Configuration - Only Log Slow Ecto Queries

Logging SQL queries can be useful but noisy. To reduce the volume of SQL queries, you can limit the queries logged to those that surpass your time threshold.

How to use it

config :timber, Timber.Integrations.EctoLogger,
  query_time_ms_threshold: 2_000 # 2 seconds

In the above example, only queries that exceed 2 seconds in execution time will be logged.


Chat with us, just click the talk button in the bottom right of this page.

Chat with us
Sign Up

Log better and solve problems faster, today. Install in under a minute.

Sign Up