Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

Provide ability to configure Google Cloud Logging as logging handler

Ouverte
#111 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
gcp, python
Domaine
observability

Piste de recherche

The issue asks for an optional Google Cloud Logging integration, so the work is to add a logging option, not to change existing behaviour. Start with the GCP structured logging special fields and the LogEntry schema it links, then check how the library currently writes logs to stdout. Done means a configurable output whose severity and message fields Cloud Logging recognises, with tests. The API shape is not settled in the thread, so agree on it with maintainers first.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Python
Étoiles
41
Forks
21
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de mozilla-services/python-dockerflow

Toutes les issues de mozilla-services/python-dockerflow

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.