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

Logging - unique request ID to each log line wherever the line is logged #34

Open
2 tasks
tiblu opened this issue Nov 6, 2018 · 2 comments
Open
2 tasks
Labels
enhancement Making an existing feature better. investigate Need to find out more about this.

Comments

@tiblu
Copy link
Member

tiblu commented Nov 6, 2018

Overview

To ease debugging an unique ID should be added to each line logged in the request context no matter how deep in the stack.

The problem is that Node.JS being async, it is quite a difficult to carry on the id between context switches. It does not make sense to pass req object or the id to each function call either.

Possible solutions

Outdated:

TODO

  • Each log line to contain unique request ID
  • Same unique request ID should be visible in the HTTP response headers
@tiblu tiblu added the enhancement Making an existing feature better. label Nov 6, 2018
@tiblu tiblu changed the title Logging - unique ID to each log line wherever the line is logged Logging - unique request ID to each log line wherever the line is logged Nov 6, 2018
@ilmartyrk
Copy link
Member

Needs further investigation, but I see the problem

@anettlinno
Copy link

Triage 37. Still relevant issue, but not with high priority. Needs investigation though, to check if it´s not outdated. Approx. investigation + dev. time 1 day. sending to To do.

@anettlinno anettlinno added the investigate Need to find out more about this. label Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Making an existing feature better. investigate Need to find out more about this.
Projects
Status: Backlog - Later
Development

No branches or pull requests

3 participants