absinthe_metrics v0.9.0 AbsintheMetrics behaviour View Source
Link to this section Summary
Link to this section Functions
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 plug
call that setup the middleware.
Callback implementation for Absinthe.Middleware.call/2
.
Link to this section Callbacks
Link to this callback
instrument(object, field, result, time)
View Source
instrument(object :: atom, field :: atom, result :: any, time :: non_neg_integer) :: any