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

PP-13119 Fix logging of correlation ID to log messages #3916

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

iqbalgds
Copy link
Contributor

  • Remove references to async local storage.
  • No longer using this as that will be a big change.
  • Instead continue to save logging context fields to the request instead.
  • Remove all references to async local storage - including the request-context file.
  • Fix bug where the correlation id was not getting logged and not sent as a header to backend services.
    • When configuring a client that calls the backend - we now pass the correlation id and save it for each request.
    • Pass the correlation id to the backend as a header.
    • Log the correlation id as part of logging messages.
  • Remove logging messages that are no longer required as the pay-js-commons/axios-base-client will do the logging instead.

@iqbalgds iqbalgds force-pushed the pp-13119-fix-correlation-id-frontend branch from db906b1 to d3867f4 Compare October 16, 2024 12:49
- Remove references to `async local storage`.
- No longer using this as that will be a big change.
- Instead continue to save logging context fields to the request instead.
- Remove all references to `async local storage` - including the
  `request-context` file.
- Fix bug where the correlation id was not getting logged and not sent
  as a header to backend services.
  - When configuring a client that calls the backend - we now pass the
    correlation id and save it for each request.
  - Pass the correlation id to the backend as a header.
  - Log the correlation id as part of logging messages.
- Remove logging messages that are no longer required as the
  `pay-js-commons/axios-base-client` will do the logging instead.
Copy link
Contributor

@hjvoid hjvoid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks cool to me - thanks for the walkthrough! 👍

@iqbalgds iqbalgds merged commit 89e24d9 into master Oct 18, 2024
11 checks passed
@iqbalgds iqbalgds deleted the pp-13119-fix-correlation-id-frontend branch October 18, 2024 07:34
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

Successfully merging this pull request may close these issues.

2 participants