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 unique request ID for tracing backend API calls #65

Open
jwreagor opened this issue Dec 1, 2017 · 1 comment
Open

Generate unique request ID for tracing backend API calls #65

jwreagor opened this issue Dec 1, 2017 · 1 comment

Comments

@jwreagor
Copy link
Contributor

jwreagor commented Dec 1, 2017

Noting for the future, it's come up a couple times that it might be helpful for us to generate unique request IDs for tracing back end REST calls. I believe the Java client does something similar but I could be wrong.

@kwilczynski
Copy link
Contributor

kwilczynski commented Feb 5, 2018

The Java client (https://github.com/joyent/java-triton) seem to do both, consume remote Request-Id header (for example, to annotate an exception with it, etc.), and also seem to be generate an unique request ID added to current logging context for the request, so that all the log lines associated with it have it added, as per:

main/java/com/joyent/triton/http/RequestIdInterceptor.java#L14-L36

Update: Corrected link. GitHub's permalink didn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants