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

Can I SET the correlation_id (in non-http context)? #69

Closed
howardjones opened this issue Apr 23, 2021 · 1 comment
Closed

Can I SET the correlation_id (in non-http context)? #69

howardjones opened this issue Apr 23, 2021 · 1 comment

Comments

@howardjones
Copy link

I have a process that listens for MQ events from elsewhere, and makes API requests based on them. We are looking at adding correlation_id to the MQ event data (they did ultimately originate from a HTTP request) but can I set the correlation_id in my MQ listener, so that its logs contain it and so that the API calls can use it?

@bobbui
Copy link
Owner

bobbui commented Apr 24, 2021

@howardjones Updated the docs to explain how to manually set the correlation id: https://github.com/bobbui/json-logging-python#forced-overriding-correlation-id

@bobbui bobbui closed this as completed Apr 24, 2021
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