View Source Monitoring
Please read the Ash monitoring guide for more information. Here we simply cover the additional traces & telemetry events that we publish from this extension.
A tracer can be configured in the api. It will fallback to the global tracer configuration config :ash, :tracer, Tracer
graphql do
trace MyApp.Tracer
end
traces
Traces
Each graphql resolver, and batch resolution of the underlying data loader, will produce a span with an appropriate name. We also set a source: :graphql
metadata if you want to filter them out or annotate them in some way.
telemetry
Telemetry
AshGraphql emits the following telemetry events, suffixed with :start
and :stop
. Start events have system_time
measurements, and stop events have system_time
and duration
measurements. All times will be in the native time unit.
[:ash, <api_short_name>, :gql_mutation]
- The execution of a mutation. Useresource_short_name
andmutation
(oraction
) metadata to break down measurements.[:ash, <api_short_name>, :gql_query]
- The execution of a mutation. Useresource_short_name
andquery
(oraction
) metadata to break down measurements.[:ash, <api_short_name>, :gql_relationship]
- The resolution of a relationship. Useresource_short_name
andrelationship
metadata to break down measurements.[:ash, <api_short_name>, :gql_calculation]
- The resolution of a calculation. Useresource_short_name
andcalculation
metadata to break down measurements.[:ash, <api_short_name>, :gql_relationship_batch]
- The resolution of a batch of relationships by the data loader. Useresource_short_name
andrelationship
metadata to break down measurements.[:ash, <api_short_name>, :gql_calculation_batch]
- The resolution of a batch of calculations by the data loader. Useresource_short_name
andcalculation
metadata to break down measurements.