Structured logging

A step of the Cloud application tree on Gradus, in the Observability area: Logs, metrics, traces, alerts.

Add structured, leveled logging with correlation IDs, so every request leaves a trail that can be followed.

Usually comes after: First deploy.

Leads to: Metrics, Log aggregation, Synthetic monitoring.

Prompt for your AI assistant

Add structured JSON logging with log levels and request correlation IDs throughout the application, replacing any ad-hoc print or console statements.

This is https://gradus.kazet.blog/tree/cloud-application/step/structured-logging as plain HTML. In a browser the page also lets you mark the step forged and copy a message for your AI assistant.