-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better-integrate our logging with Google Cloud logging #771
Comments
Logging to On switching from mozlog, can't we use the mozlog format with google cloud logging? |
I don't think there's a good reason -- this is just the default for Python's
We might be able to. I'm still trying to understand this part. Looking into this more, I found:
And then looking here:
So it would seem that the one deviation from |
It would also appear that we could write request information to an |
We might also be able to write some configuration that converts mozlog records to records that are compatible with Google Cloud Logging: https://cloud.google.com/logging/docs/structured-logging#structured_logging_operations |
It appears that all of our logs are being written as Errors in the Google Cloud Logging dashboard:
I believe this is due to the fact that we're using a
StreamHandler
to handle logging, which by default writes tostderr
(Python docs).We could modifying our logging config to write to
stdout
instead. This would turn all of the errors intoInfo
messages.However, doing so would then have the opposite effect -- we'd, for example, bury exceptions as Info messages.
One option to improve the usefulness of the logging dashboard would be to write our logs in a format that would integrate well with Google Cloud logging. There are a few options outlined here.
I think moving in this direction might also mean not using Mozlog. It seems like the two structured log formats are incompatible.
The text was updated successfully, but these errors were encountered: