Lockspire.Observability (lockspire v1.0.0)

Copy Markdown

Shared audit and telemetry emission helpers.

Summary

Types

action()

@type action() :: atom()

entity()

@type entity() :: atom()

measurements()

@type measurements() :: map()

metadata()

@type metadata() :: map()

Functions

emit(event, measurements, metadata)

@spec emit(action(), measurements(), metadata()) :: :ok

emit(entity, action, measurements, metadata)

@spec emit(entity(), action(), measurements(), metadata()) :: :ok

emit_logout(stage, measurements \\ %{}, metadata \\ %{})

@spec emit_logout(atom(), measurements(), metadata()) :: :ok

logout_event_name!(stage)

@spec logout_event_name!(atom()) :: atom()

logout_lifecycle_events()

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

redact(metadata)

@spec redact(metadata()) :: metadata()