absinthe_metrics v1.0.0 AbsintheMetrics behaviour View Source

Link to this section Summary

Functions

This is the main middleware callback

Link to this section Functions

Link to this function after_resolve(res, list) View Source

This is the main middleware callback.

It receives an %Absinthe.Resolution{} struct and it needs to return an %Absinthe.Resolution{} struct. The second argument will be whatever value was passed to the middleware call that setup the middleware.

Callback implementation for Absinthe.Middleware.call/2.

Link to this section Callbacks

Link to this callback field(object, field, args) View Source
field(object :: String.t(), field :: String.t(), args :: []) :: any()
Link to this callback instrument(object, field, result, time) View Source
instrument(
  object :: atom(),
  field :: atom(),
  result :: any(),
  time :: non_neg_integer()
) :: any()