Telemetry helpers for protocol, auth, handler, and transport events.
The [:attesto_mcp_server, :auth, :policy_failure] event reports an invalid
revocation result, a caught host-policy callback failure, or an HTTP verifier
failure without including the callback reason, token claims, or principal.
The [:attesto_mcp_server, :session_store, :failure] event reports a
session-store operation that failed or a corrupt persisted row discarded by
the bundled Ecto adapter. Its failure-specific metadata contains only the
bounded operation atom in :source and a neutral :unavailable or
:corrupt_discarded outcome.
Summary
Functions
Emits a safe event after removing credential and private payload fields.
Invokes an explicitly trusted host exception reporter without changing request behavior.
Emits start/stop (or exception) events around a callback.
Validates bounded host metadata that may be attached to every server event.
Functions
Emits a safe event after removing credential and private payload fields.
Invokes an explicitly trusted host exception reporter without changing request behavior.
Emits start/stop (or exception) events around a callback.
@spec validate_trusted_metadata!(map() | nil) :: :ok
Validates bounded host metadata that may be attached to every server event.