Skip to content
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

Provide ability to configure Google Cloud Logging as logging handler #111

Open
grahamalama opened this issue Apr 23, 2024 · 0 comments
Open

Comments

@grahamalama
Copy link
Contributor

grahamalama commented Apr 23, 2024

Quoting the Dockerflow spec:

Optional Recommendations

...
2. Log to stdout in the mozlog json schema.

Many Mozilla service are now being deployed on GCP, and as such use Google Cloud Logging (FKA Stackdriver) to ingest logs.

Google Cloud Logging has its own schema that defines the shape of a structured log, and the fields of this schema affect the presentation of the log in the Logs Explorer.

For example:

  • If GCP does not recognize the severity notation of logged message, it will consider anything emitted to stdout as INFO and anything emitted to stderr as ERROR
  • by providing a message field, only that message is displayed in the log entry line in the explorer, with the ability to unfold entire log message to view other properties. Without it, the entire json object appears on the log line

This library should provide an easy way to integrate Google Cloud Logging's schema into an application. Though engineers could set up this integration themselves, providing an integration through this library provides an easy path to transition should engineers want to make the switch.

@grahamalama grahamalama changed the title Integrate Google Cloud Logging into python-dockerflow framework integrations Provide ability to configure Google Cloud Logging as logging handler Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant