pushinbr / pam-native-observability
Vendor-neutral traces, metrics, logs and crash context for PAM Native.
Package info
github.com/push-in/pam-native-observability
pkg:composer/pushinbr/pam-native-observability
Requires
- php: ^8.4
- ext-json: *
- pushinbr/pam-native: ^0.6.1
README
Vendor-neutral, dependency-light spans, structured logs, counters, gauges, crash context, deterministic sampling, bounded batching, and pluggable export for PAM Native apps. The default HTTPS transport works with a collector or ingestion gateway; implement TelemetryTransport for Sentry, Datadog, Honeycomb, New Relic, or an offline spool.
composer require pushinbr/pam-native-observability
$telemetry = new Observability($config, new CurlTelemetryTransport()); $span = $telemetry->span('feed.load'); try { loadFeed(); $span->status(SpanStatus::Ok); } catch (Throwable $e) { $span->exception($e); throw $e; } finally { $span->end(); $telemetry->flush(); }
The queue is bounded and drops the oldest signals under backpressure. Failed exports are restored to the front of the queue. Secrets and personal data are never collected automatically; applications explicitly choose context and attributes.