Skip to content

Main

provide.foundation.logger.processors.main

TODO: Add module docstring.

Classes

Functions

reset_event_enrichment_state

reset_event_enrichment_state() -> None

Reset event enrichment initialization state for testing.

This should only be called during test cleanup to allow re-initialization in the next test.

Source code in provide/foundation/logger/processors/main.py
def reset_event_enrichment_state() -> None:
    """Reset event enrichment initialization state for testing.

    This should only be called during test cleanup to allow re-initialization
    in the next test.
    """
    global _event_enrichment_initialized
    _event_enrichment_initialized = False

set_reset_in_progress

set_reset_in_progress(in_progress: bool) -> None

Set whether a reset is currently in progress.

This prevents event enrichment from triggering during resets.

Source code in provide/foundation/logger/processors/main.py
def set_reset_in_progress(in_progress: bool) -> None:
    """Set whether a reset is currently in progress.

    This prevents event enrichment from triggering during resets.
    """
    global _reset_in_progress
    _reset_in_progress = in_progress