View Source QueryStats.Handler (query_stats v0.1.1)

This module is responsible for handling events and attaching to the application telemetry.

Summary

Functions

Attaches the handler to the application telemetry.

Handles the query event by incrementing the query statistics.

Functions

@spec attach(atom()) :: :ok

Attaches the handler to the application telemetry.

Link to this function

handle_event(event, timings, query, _)

View Source
@spec handle_event([atom()], map(), map(), any()) :: :ok

Handles the query event by incrementing the query statistics.