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

[trace] Add default generic parameters to ResponseBody and ResponseFuture #455

Merged
merged 3 commits into from
Jan 14, 2024

Conversation

TofuWaffles
Copy link
Contributor

@TofuWaffles TofuWaffles commented Jan 9, 2024

Motivation

Fixes issue: #233

Solution

This PR adds default generic parameters to trace::{ResponseBody, ResponseFuture}, allowing users to use these respective types while omitting several generics that can be defaulted, decreasing verbosity.

Additionally, this PR also adds two type aliases: HttpMakeClassifier and GrpcMakeClassifier, as requested in the issue mentioned.

@TofuWaffles TofuWaffles changed the title [trace] Add default generic parameters to RequestBody and RequestFuture [trace] Add default generic parameters to ResponseBody and ResponseFuture Jan 9, 2024
Copy link
Collaborator

@jplatte jplatte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Could you mention the changes in the changelog, please?

@TofuWaffles
Copy link
Contributor Author

@jplatte Thank you for the review! I've added my changes to the changelog. Please let me know if there are any issues.

@jplatte jplatte merged commit 7189afe into tower-rs:main Jan 14, 2024
11 checks passed
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