View Source OpentelemetryAbsinthe.TelemetryMetadata (opentelemetry_absinthe v2.3.1)

A helper module to allow integrators to add custom data to their context which will then be added to the [:opentelemetry_absinthe, :graphql, :handled] event

Summary

Types

@type absinthe_context() :: map()
@type telemetry_metadata() :: %{optional(atom()) => any()}

Functions

@spec from_context(absinthe_context()) :: telemetry_metadata()
Link to this function

update_context(context, metadata)

View Source
@spec update_context(absinthe_context(), telemetry_metadata()) :: absinthe_context()