-
Notifications
You must be signed in to change notification settings - Fork 2
ObservabilityEvent
Viames Marino edited this page Apr 22, 2026
·
1 revision
Pair\Core\ObservabilityEvent is a small immutable event object for non-span observability signals.
Pair uses it for warning/error log events so adapters can forward error signals to systems such as Sentry without changing the span contract.
namelevelmessagecorrelationIdtimestampattributes
Applications usually do not instantiate this class directly. Use Observability::recordLogEvent(...) when a custom event should enter the same sanitized pipeline used by Pair logs.
use Pair\Core\Observability;
Observability::recordLogEvent('warning', 'Payment retry scheduled', [
'provider' => 'stripe',
]);See also: Observability, ObservabilityEventAdapter, SentryObservabilityAdapter.