Add process type to logs

For the NATS log bus it would be helpful to us to include the process type which generated the log. For example, we would like to filter our logs to just see worker processes but can’t do that today.

Adding it as .fly.app.process would be my suggestion.

{
  "event": {
    "provider": "app"
  },
  "fly": {
    "app": {
      "instance": "99998888811111",
      "name": "cron",
      "process": "worker",
    },
    "region": "iad"
  },
  "host": "aabb",
  "log": {
    "level": "info",
  },
  "message": "Hi!",
  "timestamp": "2023-05-25T19:35:00.509678401Z"
}

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.