Observability (OpenTelemetry)
The 2026 Gold Standard for Monitoring.
Primus Observability is a vendor-neutral telemetry solution built on OpenTelemetry (OTel). It replaces legacy, vendor-specific logging SDKs with a unified standard that collects Logs, Metrics, and Distributed Traces automatically.
Why Observability?
Logging tells you what happened. Observability tells you why it happened.
| Feature | Legacy Logging | Primus Observability (OTel) |
|---|---|---|
| Tracing | Manual Correlation | Automatic Distributed Tracing |
| Metrics | Separate Agent | Built-in Metrics (HTTP, CPU, GC) |
| Vendor | Locked-in | Universal (Switch via config) |
| Context | Manual Scopes | Automatic Propagation |
What it Captures
By adding one line of code, your application automatically reports:
- HTTP Requests: Inbound API calls (Status codes, Latency).
- Dependencies: Outbound HttpClient calls to other services.
- Runtime Metrics: CPU usage, Memory consumption, Garbage Collection stats.
- Structured Logs: Connects logs to traces (TraceID injection).
Next Steps
- Integration Guide: Add observability to your application.