View Source AbsintheFieldTelemetry.Backend behaviour (absinthe_field_telemetry v0.3.0)

The backend of AbsintheFieldTelemetry.

Contains details of the callbacks required for a backend.

Summary

Types

@type field() :: {type_identifier(), field_identifier()}
@type field_hits() :: [{field(), integer()}]
@type field_identifier() :: atom()
@type schema() :: Absinthe.Schema.t()
@type t() :: module()
@type type_identifier() :: atom()

Callbacks

Link to this callback

get_all_field_hits(schema)

View Source
@callback get_all_field_hits(schema()) :: field_hits()
Link to this callback

record_field_hits(schema, list)

View Source
@callback record_field_hits(schema(), [field()]) :: :ok
@callback reset(schema()) :: :ok

Functions