Timber v3.0.0-alpha.2 Timber.Events.SQLQueryEvent View Source

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.

Link to this section Summary

Functions

Message to be used when logging

Link to this section Types

Link to this type t() View Source
t() :: %Timber.Events.SQLQueryEvent{sql: String.t(), time_ms: integer()}

Link to this section Functions

Link to this function message(sql_query_event) View Source
message(t()) :: IO.chardata()

Message to be used when logging.