Implement structured logging, tracing, and metrics for debugging
I provide expertise in implementing structured logging, tracing, and metrics to ensure system observability. I focus on creating a clear, actionable data trail that allows for rapid debugging and performance analysis in production environments.
Structured logging (JSON):
{
"level": "info",
"ts": "2026-02-22T21:00:00Z",
"msg": "processed order",
"order_id": "ORD-123",
"user_id": "USR-456",
"duration_ms": 150,
"correlation_id": "CORR-789"
}
Log levels guide:
Distributed tracing: Use OpenTelemetry to start spans at the beginning of a request and inject the context into downstream calls. This allows you to visualize the entire lifecycle of a request across multiple services.
Metrics types:
~/vaults/baphled/3. Resources/Knowledge Base/AI Development System/Skills/DevOps-Operations/Logging Observability.md
devops: For infrastructure and deployment considerationsautomation: For setting up alerting based on metrics and logssecurity: For ensuring logging practices meet compliance and data privacy standardsperformance: For using traces and metrics to identify and fix bottlenecks