transitmatters / gobble

🦃 Process MBTA events into a format that can be consumed by the Data Dashboard
MIT License
2 stars 3 forks source link

Adds logging in a format that datadog can read #46

Closed devinmatte closed 10 months ago

devinmatte commented 10 months ago

Wanted to get logging into Datadog so we can more easily track down issues and see logs without checking the server

Also saves it to a file so we don't lose logs when things die

See on Datadog how it would look: https://app.datadoghq.com/logs?query=service%3Agobble%20&cols=host%2Cservice&index=%2A&messageDisplay=inline&refresh_mode=sliding&storage=hot&stream_sort=desc&view=spans&viz=stream&from_ts=1704758723000&to_ts=1704759023000&live=true

Allowing filters, for example, only logs for the 28: https://app.datadoghq.com/logs?query=service%3Agobble%20%40route%3A28&cols=host%2Cservice&index=%2A&messageDisplay=inline&refresh_mode=sliding&storage=hot&stream_sort=desc&view=spans&viz=stream&from_ts=1704758723000&to_ts=1704759023000&live=true