Log
Enqueues a single log for background delivery via the SDK worker (singleton after olira.init()).
POST
sdk:event-log
The worker batches and POSTs to /v1/logs/batch. Returns immediately after enqueue unless the queue rejects the event.
Parameters
Catalog log type enum value.
Olira patient id. Must not be empty; SDK rejects obvious PII patterns.
Event-specific JSON payload (≤512 KB wire limit per event).
Optional linkage to your object_type / object_id.
ISO 8601 timestamp; omit for server default.
Arbitrary key/value context stored alongside the event, separate from the typed payload. Surfaced in the Olira Console event detail panel.
Returns
None
Raises
| Exception | When |
|---|---|
OliraError | olira.init() was not called, or the background queue could not accept the event. |
ValidationError | Client-side validation failed (e.g. patient_id rules, payload too large). |
AuthError | HTTP 401 or 403 — invalid API key or insufficient OAuth scope for this endpoint. |
ServerError | HTTP 409 (e.g. conflicting external identifier) or repeated 5xx after retries; includes status_code when applicable. |
RateLimitError | HTTP 429 — rate limited; check retry_after (seconds). |
NetworkError | Connection timeout, DNS failure, or read error after retries. |
Previous
log_batchSends one synchronous POST /v1/logs/batch with all events (bypasses the background worker).
Next

