View Source OpentelemetryAbsinthe.Instrumentation (opentelemetry_absinthe v2.0.1-rc.0)

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

Functions

Link to this function

handle_operation_start(event_name, measurements, metadata, config)

View Source
Link to this function

handle_operation_stop(event_name, measurements, data, config)

View Source
Link to this function

setup(instrumentation_opts \\ [])

View Source
Link to this macro

span_ctx(args \\ [])

View Source (macro)
Link to this macro

span_ctx(record, args)

View Source (macro)