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 RestLiTraceInfo to the request context for both client and server… #846

Merged
merged 8 commits into from
Oct 6, 2022

Conversation

dmessink
Copy link
Contributor

@dmessink dmessink commented Oct 4, 2022

The intent is to provide additional Rest.Li trace information to R2 by packaging this info into a RestLiTraceInfo bean and adding it to the request context for both incoming and outgoing requests. The main id is the resourceMethodIdentifier in the form: stripped(baseUriTemplate) + ':' + . Example: album/photo:get or album:action:purgeAll. Note that keys are stripped from the baseUriTemplate when generating the identifier.

For outgoing requests, the identifier is available via Request.getResourceMethodIdentifier(). For incoming requests, the identifier is available via ResourceMethodDescriptor.getResourceMethodIdentifier(). (The baseUriTemplate is also available from the ResourceMethodDescriptor.)

@evanw555
Copy link
Contributor

evanw555 commented Oct 5, 2022

You're adding new APIs in various places, so please bump the minor version.

Also, update CHANGELOG.md accordingly. Follow the directions at the top of the file to ensure it's updated correctly.

@evanw555 evanw555 merged commit 693711e into linkedin:master Oct 6, 2022
@dmessink dmessink deleted the restli-trace-info branch October 6, 2022 20:30
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

Successfully merging this pull request may close these issues.

2 participants