praval.observability.instrumentation.manager

Instrumentation manager.

Coordinates all instrumentation of Praval components.

Functions

initialize_instrumentation()

Initialize automatic instrumentation of Praval framework.

is_instrumented()

Check if instrumentation is initialized.

reset_instrumentation()

Reset the instrumentation state and restore original functions.

praval.observability.instrumentation.manager.initialize_instrumentation()[source]

Initialize automatic instrumentation of Praval framework.

This should be called once when the observability module is imported.

Return type:

bool

Returns:

True if instrumentation was initialized, False if disabled or already initialized

praval.observability.instrumentation.manager.is_instrumented()[source]

Check if instrumentation is initialized.

Return type:

bool

Returns:

True if instrumentation is active

praval.observability.instrumentation.manager.reset_instrumentation()[source]

Reset the instrumentation state and restore original functions.

This is primarily used for testing to ensure test isolation. Restores all monkey-patched functions to their original implementations.

Return type:

None