View Source Avalanche.Telemetry (Avalanche v0.12.2)

Telemetry integration.

Unless specified, all time's are in :native units.

Avalanche executes the following events:

query-start

Query Start

[:avalanche, :query, :start] - Executed at the start of each query sent to Snowflake.

Measurements

  • :system_time - The time the query started

Metadata:

  • :query - The query sent to the database as a string
  • :params - The query parameters

query-stop

Query Stop

[:avalanche, :query, :stop] - Executed at the end of each query sent to Snowflake.

Measurements

  • :duration - The time spent executing the query

Metadata:

  • :query - The query sent to the database as a string
  • :params - The query parameters
  • :result - The query result (selected, updated)
  • :num_rows - The number of rows effected by the query
  • :error - Present if any error occurred while processing the query. (optional)

query-exception

Query Exception

[:avalanche, :query, :exception] - Executed if executing a query throws an exception.

Measurements

  • :duration - The time spent executing the query

Metadata

  • :kind - The type of exception.
  • :error - Error description or error data.
  • :stacktrace - The stacktrace

Link to this section Summary

Link to this section Functions

Link to this function

event(event, measurements, meta)

View Source
@spec event(atom(), number() | map(), map()) :: map()

Used for reporting generic events

Link to this function

start(event, meta, extra_measurements \\ %{})

View Source
@spec start(atom(), map(), map()) :: map()

Emits a start telemetry event

Link to this function

stop(event, start_time, meta \\ %{}, extra_measurements \\ %{})

View Source
@spec stop(atom(), number(), map(), map()) :: map()

Emits a stop event