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

Add api to access request_id of current request #689

Open
erikcw opened this issue Dec 6, 2023 · 0 comments
Open

Add api to access request_id of current request #689

erikcw opened this issue Dec 6, 2023 · 0 comments

Comments

@erikcw
Copy link

erikcw commented Dec 6, 2023

It would be really nice to be able to fetch the request_id of the current request so that it can be added to a response header or otherwise "reported" during the request/response cycle to allow direct lookup in the Silk UI of a specific interaction (ie https://example.com/silk/request/3b9671bf-1dd0-4e02-97df-a5f39fb32480/).

Adding it to the request object (request.silk_request_id == '3b9671bf-1dd0-4e02-97df-a5f39fb32480') or adding a function which returns the ID for the current request (get_silk_request_id()) seem like reasonable approaches.

If this is already accessible through some other means, sorry for missing that. I looked through the docs and the code and it doesn't seem to be implemented currently.

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

1 participant