12-Factor Web development: Support for structured logging

Following our recent update on custom Prometheus scrape configurations, we are excited to announce the next step in our observability roadmap for the 12-factor tooling.

We have added support for Structured logging configuration directly in the paas-config.yaml.

What’s new?

When using the Flask, Django, or FastAPI frameworks, you can now configure the underlying server (Gunicorn or Uvicorn) to output logs in JSON format following OTEL semantic conventions.

Automatic Trace Correlation

A key benefit of this update is that if your application is instrumented with opentelemetry, the Gunicorn and Uvicorn access logs will automatically include traceId and spanId. This allows you to jump easily from a log entry to a specific trace in your telemetry backend (or vice versa).

Documentation: