Repository navigation
feat(#21): avertissement Loki pour un label à forte cardinalité - #124
Merged
Merged
Conversation
This was referenced Nov 4, 2026
This was referenced Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #21
Résumé
Critère de #21 non rempli sur dev : « avertissement si un label à forte cardinalité est configuré ».
outputs/loki.py:CHAMPS_FORTE_CARDINALITE(message,@timestamp,id,trace_id,request_id, ports, IP…) etchamps_forte_cardinalite(modele); à la construction, unlogger.warningtraduit par label dont le gabarit référence un de ces champs (%{message},%{[otel][trace_id]}). La configuration reste acceptée.docs/sorties.md: particularité documentée dans la section Loki.messages.potet aux 29 catalogues (traduite enen_US,.morecompilé). Au passage, deux traductionsen_USfausses sur dev ont été corrigées (« sortie « {} » déjà inscrite au registre » et « sortie « {} » inconnue — sorties disponibles : {} » étaient traduites par des messages d'option, avec un nombre de champs différent — critère « message d'erreur traduit » de [P1] Socle sorties : interfaceOutputasynchrone et registre des sorties #4).Testé
tests/test_outputs_loki.py: 3 nouveaux tests (avertissement, absence d'avertissement, dédoublonnage/constantes) ;loki.pyà 100 %uv run pytest --cov: 2119 réussis, 99,62 %ruff check/format --checkOK,audit_debug_sorties.py --total= 0,i18n-update.sh --checkOKLimites
Liste de champs heuristique (nom du dernier segment du champ référencé) : un champ à forte cardinalité au nom inhabituel n'est pas détecté.