Crosswake.Companions.Sigra.Telemetry (crosswake v0.1.2)

View Source

Stable telemetry contract for Sigra auth diagnostics.

Sigra telemetry is diagnostic evidence only. Session authority, replay, revocation, expiry, audit, and route authority remain owned by backend session lanes plus host-owned handoff, step-up, and auth-return records.

Summary

Functions

event_names()

@spec event_names() :: [[atom()]]

execute(name, measurements \\ %{}, metadata \\ %{})

@spec execute([atom()], map(), map() | keyword()) :: :ok

flows()

@spec flows() :: [atom()]

forbidden_metadata_keys()

@spec forbidden_metadata_keys() :: [atom()]

freshness_buckets()

@spec freshness_buckets() :: [atom()]

metadata(event)

@spec metadata(Crosswake.Companions.Sigra.Telemetry.Event.t() | map() | keyword()) ::
  map()

metadata_keys()

@spec metadata_keys() :: [atom()]

new_event(attrs)

@spec new_event(keyword()) :: Crosswake.Companions.Sigra.Telemetry.Event.t()

outcomes()

@spec outcomes() :: [atom()]

proof_classes()

@spec proof_classes() :: [atom()]

return_kinds()

@spec return_kinds() :: [atom()]

to_map(event)

@spec to_map(Crosswake.Companions.Sigra.Telemetry.Event.t()) :: map()

valid_event_name?(name)

@spec valid_event_name?(term()) :: boolean()