-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
As a user I should be able to add correlation IDs to all my requests #713
Comments
Would this be the same thing as a "request ID"? Would this be used by us, by users, or both? |
Yes it's the same thing as a request ID, mainly used for auditing. To be used by users, we've been asked for this for ages, so much so that we set up a python plugin that does it: https://github.com/TykTechnologies/tyk-plugin-correlation But now it can be part of the main build (optionally added by enabling the context variable option in the api spec). |
I assume this Task also requires updating documentation |
Yes it will |
@lonelycode @buger I need some documentation or example in order to test this :) |
@ilijabojanovic have you seen the test added in the PR? https://github.com/TykTechnologies/tyk/pull/715/files |
Meant to just comment, not reopen. |
@ilijabojanovic yeah, details indeed missing. Here is documentation for this feature https://tyk.io/tyk-documentation/transform-traffic/request-headers/ To test it, your API definition should have the following
So basically this PR's adds a new variable to $tyk_context. And all these context variables should be injected into response headers. |
I'm a bad person - sorry I should have made it clearer. |
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
All requests coming through the gateway are not uniquely identified
What is the expected behavior?
Tyk should tag up each request with a correlation ID (UUID), that can be injected as a header using the
tyk_context
namespaceWhich versions of Tyk affected by this issue? Did this work in previous versions of Tyk?
All
The text was updated successfully, but these errors were encountered: