Timber v2.5.5 Timber.Events.SQLQueryEvent

The SQLQueryEvent tracks outgoing SQL queries.

This gives you structured insight into SQL query performance within your application.

The defined structure of this data can be found in the log event JSON schema: https://github.com/timberio/log-event-json-schema

Timber can automatically track SQL query events if you use Ecto and setup Timber.Integrations.EctoLogger.

Summary

Functions

Message to be used when logging

Types

t()
t() :: %Timber.Events.SQLQueryEvent{sql: String.t, time_ms: float}

Functions

message(s_q_l_query_event)
message(t) :: IO.chardata

Message to be used when logging.