API Reference¶
Top-level exports¶
The package root exports the main entry points:
ObserverConfigObserverMiddlewareLogEventFilterPipelineonly_errorsmin_status_codemin_duration_msexclude_pathsbuild_loggerlog_eventbuild_dashboard_appcreate_dashboard_appInMemoryEventStoreJsonLinesEventStoreJsonFileEventStoreSQLiteEventStore
Models¶
LogEvent is the structured event model used across the package.
Configuration¶
ObserverConfig defines filtering, formatting, and redaction behavior.
Storage¶
The storage package provides:
InMemoryEventStoreJsonLinesEventStoreJsonFileEventStoreSQLiteEventStore
Filters¶
only_errors(event)min_status_code(code)min_duration_ms(ms)exclude_paths(paths)
Logger helpers¶
build_logger(config, logger_name="fastapi_inspector")log_event(logger, config, event)