tower-rs / tower-http

HTTP specific Tower utilities.
675 stars 156 forks source link

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

Closed SPanner0 closed 7 months ago

SPanner0 commented 7 months ago

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.

SPanner0 commented 7 months ago

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