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 665b758
Browse filesBrowse the repository at this point in the historyBrowse files
|`servicewright.adapters.observability`| ABCs `MetricsSink`, `TracingSink`, `ErrorTrackingSink`, `LoggingSink`; backends `PrometheusMetricsSink`, `OtelTracingSink`, `SentryErrorTrackingSink`, `StructlogLoggingSink`, `StdlibLoggingSink` (each imported lazily on first access) |
321
+
|`servicewright.adapters.observability`| ABCs `MetricsSink`, `TracingSink`, `ErrorTrackingSink`, `LoggingSink`; backends `PrometheusMetricsSink`, `OtelTracingSink`, `SentryErrorTrackingSink`, `StructlogLoggingSink`, `StdlibLoggingSink` (each imported lazily on first access). `StructlogLoggingSink(*, event_key=None, extra_processors=(), stream=None)`: `event_key` renames `event` in JSON output only and defaults to `settings.logging.event_key` (`LOGGING__EVENT_KEY=message` for ELK), `extra_processors` run after `ExtraAdder` and before the redactor, `stream=None` is stderr|
322
322
|`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) |
323
323
|`servicewright.adapters.health.postgres` / `.redis`|`PostgresHealthCheck(session_maker, timeout=5.0)`, `RedisHealthCheck(client, timeout=5.0)` — import from the submodule, not the package |
|`use_json`|`bool`|`True`| JSON lines vs human-readable console output |
38
+
|`event_key`|`str`|`"event"`| Key of a line's text in JSON output, `"message"` for ELK; read by the structlog backend only, console output keeps `event`|
0 commit comments