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

Generate/User Log Request id based on header. #62

Closed
prashantidealittechno opened this issue Jan 17, 2022 · 3 comments
Closed

Generate/User Log Request id based on header. #62

prashantidealittechno opened this issue Jan 17, 2022 · 3 comments

Comments

@prashantidealittechno
Copy link

Create a new log request id if not passed into the header, otherwise use the log_request_id that passed into the header for log.

In my case I am using the package in microservices to get the same log request id but how can I ensure that it does not generate the new log request id if the endpoint is called from another service and use the same one passed into the header, or ensure that if a new request is created by the user there will be no log request-id and we need to generate a new id.

@j4mie
Copy link
Member

j4mie commented Jan 17, 2022

Hi 👋🏻 I'm not sure I fully understand the question, but I think what you're looking for is the LOG_REQUEST_ID_HEADER and possibly the GENERATE_REQUEST_ID_IF_NOT_IN_HEADER settings (see the README for details). Does that answer the question?

@prashantidealittechno
Copy link
Author

prashantidealittechno commented Jan 18, 2022

I will add and check if I get the response I needed. Thanks for the quick response.

@prashantidealittechno
Copy link
Author

it works thanks

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

No branches or pull requests

2 participants