Add unique ID without impacting wildcard functionality

Ouverte
#758 1 commentaire 3 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
javascript
Domaine
observability

Piste de recherche

Start by reviewing the library's extend behavior and wildcard matching, then trace how names are formatted and filtered. Define how a unique transaction ID should appear in log output while preserving patterns such as DEBUG=debug:app*:other_extend_call; done means both identification and wildcard filtering work together.

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

Description

If a lot of different users interact with your application at the same time and calling async calls, you get log output that is a combination of all these actions and it's not easy to determine which log line is for which user/action/transaction/call_it_however_you_like.

I thought about using the extend function and add something like ":trans(transaction_id)" so the output would be:
debug:app(transaction_id) Some log output

But the problem here is that wildcards for enabling other extend calls would be an issue. For example DEBUG=debug:app*:other_extend_call which will not work.

Is there a way to add a transactionid to this without breaking the wildcard functionality? For example by just removing (transaction_id) using a replace somewhere in the library?

Langage dominant
JavaScript
Étoiles
11.5k
Forks
992
Métriques de merge des PR
Aucune PR mergée en 30 j

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

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 debug-js/debug

Toutes les issues de debug-js/debug

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

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