Skip to content

Add structured JSON logging for production deployments #17

@haydenk

Description

@haydenk

tracing-subscriber is currently configured for human-readable (pretty-print) output only. Production deployments feeding logs to aggregators (Loki, Datadog, Grafana Cloud, etc.) need structured JSON output.

Proposed change:

  • Add a LOG_FORMAT environment variable accepting pretty (default) or json
  • When json, use tracing_subscriber::fmt().json() formatter
  • Apply consistently across all three binaries (downloader, etl, api)

Dependencies to add: tracing-subscriber already has the json feature — just needs to be enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions