Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/layerlens/instrument/adapters/_base/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""Shared base infrastructure for all instrument adapters.

This package re-exports the public surface of the base adapter contract
(``AdapterInfo``, ``BaseAdapter``) and the resilience helpers used by
framework adapters to wrap callbacks in try/except boundaries so that
observability code never breaks the user's framework.
"""

from __future__ import annotations

from ._core import AdapterInfo, BaseAdapter
from .resilience import (
DEFAULT_FAILURE_THRESHOLD,
HealthStatus,
ResilienceTracker,
get_default_for,
resilient_callback,
)

__all__ = [
"AdapterInfo",
"BaseAdapter",
"DEFAULT_FAILURE_THRESHOLD",
"HealthStatus",
"ResilienceTracker",
"get_default_for",
"resilient_callback",
]
Loading