View Source Snowpack.Telemetry (Snowpack v0.7.8)

Telemetry integration.

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

Snowpack executes the following events:

query-start

Query Start

[:snowpack, :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

[:snowpack, :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

[:snowpack, :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