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

The backend of AbsintheFieldTelemetry.

Contains details of the callbacks required for a backend.

Summary

Functions

See AbsintheFieldTelemetry.Backend.Ets.get_all_field_hits/1.

See AbsintheFieldTelemetry.Backend.Ets.get_all_path_hits/1.

See AbsintheFieldTelemetry.Backend.Ets.record_field_hits/2.

See AbsintheFieldTelemetry.Backend.Ets.record_path_hits/2.

See AbsintheFieldTelemetry.Backend.Ets.reset/1.

Types

@type field() :: {type_identifier(), field_identifier()}
@type field_hits() :: [{field(), integer()}]
@type field_identifier() :: atom()
@type path() :: [String.t()]
@type path_hits() :: [{path(), integer()}]
@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

get_all_path_hits(schema)

View Source
@callback get_all_path_hits(schema()) :: path_hits()
Link to this callback

record_field_hits(schema, list)

View Source
@callback record_field_hits(schema(), [field()]) :: :ok
Link to this callback

record_path_hits(schema, list)

View Source
@callback record_path_hits(schema(), [path()]) :: :ok
@callback reset(schema()) :: :ok

Functions

Link to this function

get_all_field_hits(schema)

View Source

See AbsintheFieldTelemetry.Backend.Ets.get_all_field_hits/1.

Link to this function

get_all_path_hits(schema)

View Source

See AbsintheFieldTelemetry.Backend.Ets.get_all_path_hits/1.

Link to this function

record_field_hits(schema, fields)

View Source

See AbsintheFieldTelemetry.Backend.Ets.record_field_hits/2.

Link to this function

record_path_hits(schema, paths)

View Source

See AbsintheFieldTelemetry.Backend.Ets.record_path_hits/2.

See AbsintheFieldTelemetry.Backend.Ets.reset/1.