Repository navigation
ObservabilityEventAdapter
Viames Marino edited this page Apr 22, 2026
·
1 revision
Pair\Core\ObservabilityEventAdapter is the optional interface for observability adapters that can receive non-span events.
It is intentionally separate from ObservabilityAdapter so existing span-only adapters remain compatible.
use Pair\Core\ObservabilityEvent;
use Pair\Core\ObservabilityEventAdapter;
final class CustomEventAdapter implements ObservabilityEventAdapter {
public function recordEvent(ObservabilityEvent $event): void {
error_log(json_encode($event->toArray(), JSON_UNESCAPED_SLASHES));
}
}In practice, an adapter that wants both traces and events implements both interfaces.
See also: Observability, ObservabilityAdapter, ObservabilityEvent.
Home · Setup · Configuration
Build with Pair 4
- Generator
- Controllers and responses
- Read models
- ActiveRecord and queries
- Forms and validation
- PairUI.js and HTML fragments
APIs and authentication
- API guide and CRUD
- Middleware and rate limits
- Users, sessions, and ACL
- Passkeys and social login
- Native mobile setup
Integrate and operate
- Integrations
- Runtime extensions and adapter keys
- Cache and cache stores
- Logs and observability
- PWA and push
- Packages and distribution
- Upgrade to v4