Security Observability
Correlate metrics, logs and traces so security questions can be answered quickly.
IntermediateMonitoringOperations
Where it fits in the lifecycle
- Plan
- Code
- Build
- Test
- Release
- Deploy
- Operate
- Monitor
- Operate Runtime security, secrets rotation and configuration reconciliation.
- Monitor Detection engineering, SIEM, compliance evidence and incident response.
Overview
Observability adds traces and consistent correlation identifiers on top of logs and metrics, so an investigator can follow a single request across services.
Why it matters
During an incident the constraint is how fast you can answer questions, not how much data you stored.
How it works
- 01Services are instrumented with OpenTelemetry.
- 02Trace and request identifiers are propagated and logged.
- 03Dashboards are built for investigation workflows, not just uptime.
Common tools
OpenTelemetryGrafanaTempoKubernetesLinuxAWS
Implementation examples
pythonPropagate trace context in logs
from opentelemetry import trace span = trace.get_current_span()ctx = span.get_span_context()logger.info("payment.authorised", extra={ "trace_id": format(ctx.trace_id, "032x"), "order_id": order.id,})Best practices
- Propagate trace context across every service boundary.
- Build investigation-oriented dashboards ahead of incidents.
Common mistakes
- Instrumenting for performance only and omitting security-relevant attributes.