The validated result of OpentelemetryStatifier.setup/1's options,
carried through :telemetry.attach/4 as the handler Config argument
(the family's unanimous pattern for setup-time options - see the plan's
Key Discoveries).
Two keys are recognised:
:record_datamodel_values- defaults tofalse. Parsed and carried here; not yet read anywhere (ots-j82reads it once the datamodel effect events are mapped).:table- the ETS table name the handler reads and writes against. Defaults toOpentelemetryStatifier.SpanTable, the module name standing in for the table name until Phase 2 gives that name a real table.
An unknown key is rejected rather than ignored: a typo'd
record_datamodel_value silently doing nothing is exactly the failure
the project's cardinality policy cannot afford.
Summary
Types
Functions
Validates a keyword list of setup options into a t().
Returns {:error, {:invalid_options, :not_a_keyword_list}} when opts is
not even a keyword list, {:error, {:unknown_options, keys}} when it
contains keys outside :record_datamodel_values/:table, and
{:error, {:invalid_option, key, value}} when a recognised key holds a
value of the wrong shape.