View Source OpentelemetryAbsinthe.Instrumentation (opentelemetry_absinthe v2.3.2)
Module for automatic instrumentation of Absinthe resolution.
It works by listening to [:absinthe, :execute, :operation, :start/:stop] telemetry events, which are emitted by Absinthe only since v1.5; therefore it won't work on previous versions.
(you can still call OpentelemetryAbsinthe.Instrumentation.setup()
in your application startup
code, it just won't do anything.)
Summary
Types
@type graphql_handled_event_measurements() :: %{duration: :int}
@type graphql_handled_event_metadata() :: %{ :operation_name => String.t() | nil, :operation_type => :query | :mutation, :schema => Absinthe.Schema.t(), :errors => [graphql_handled_event_error()] | nil, :status => :ok | :error, optional(atom()) => any() }