smonitor.collect_identity_bundle#

smonitor.collect_identity_bundle(*, max_events=100, allowed_codes=())[source]#

Collect a bounded, nonemitting snapshot of retained event identities.

This is an opt-in narrow support artifact, not a redaction of a rich bundle. Only caller-approved code identifiers may appear as strings from events. Retention, filtering, and pending summaries can make history incomplete.

Parameters:
  • max_events (int)

  • allowed_codes (Iterable[str])

Return type:

Dict[str, Any]