You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc08d1f
Browse filesBrowse the repository at this point in the historyBrowse files
|`install_signal_handlers`|`install_signal_handlers(stop_event)`| the installer the Host uses on the unowned path; returns an idempotent remover. Only useful when you pass `stop=` yourself — see rule 8 |
199
200
200
201
### Describing a service
201
202
@@ -298,7 +299,9 @@ see `None`, and nothing is exported.
298
299
### Adapters
299
300
300
301
Each subpackage needs its extra; importing one without it raises `ImportError` naming what
301
-
to install.
302
+
to install. `servicewright.adapters.warmers` and `.health` are the exception: they are
303
+
duck-typed on the client you pass in and soft-import their SDK, so they import with no extra
304
+
installed and raise (or degrade) at construction instead.
|`servicewright.adapters.observability`| ABCs `MetricsSink`, `TracingSink`, `ErrorTrackingSink`, `LoggingSink`; backends `PrometheusMetricsSink`, `OtelTracingSink`, `SentryErrorTrackingSink`, `StructlogLoggingSink`, `StdlibLoggingSink` (each imported lazily on first access) |
312
-
|`servicewright.adapters.warmers`|`RedisWarmer`, `PostgresWarmer`, `KafkaProducerWarmer` — all `(client, …, timeout=10.0, priority=0, raise_on_failure=True)`|
315
+
|`servicewright.adapters.warmers`|`RedisWarmer`, `PostgresWarmer`, `KafkaProducerWarmer` — all `(client, …, timeout=10.0, priority=0, raise_on_failure=True)`; the package and the submodules both export them, extra or no extra, and `PostgresWarmer` is the only one that needs its SDK (`PostgresWarmupError` at construction without it)|
313
316
|`servicewright.adapters.health.postgres` / `.redis`|`PostgresHealthCheck(session_maker, timeout=5.0)`, `RedisHealthCheck(client, timeout=5.0)` — import from the submodule, not the package |
0 commit comments