View Source OpentelemetryAbsinthe.TelemetryMetadata (opentelemetry_absinthe v2.3.2)

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

absinthe_context()

@type absinthe_context() :: map()

telemetry_metadata()

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

Functions

from_context(context)

@spec from_context(absinthe_context()) :: telemetry_metadata()

update_context(context, metadata)

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