Skip to content

Commit

Permalink
Merge pull request #252 from pace/transport-dump-last
Browse files Browse the repository at this point in the history
Use dump round tripper as last in the chain
  • Loading branch information
threez committed Apr 26, 2021
2 parents 0235e64 + ff9582a commit 8b084f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions http/transport/default_transport.go
Expand Up @@ -10,10 +10,11 @@ func NewDefaultTransportChain() *RoundTripperChain {
&ExternalDependencyRoundTripper{},
NewDefaultRetryRoundTripper(),
&JaegerRoundTripper{},
NewDumpRoundTripperEnv(),
&LoggingRoundTripper{},
&LocaleRoundTripper{},
&RequestIDRoundTripper{},
// Ensure this is always last, in order to get the correct dump
NewDumpRoundTripperEnv(),
)
}

Expand All @@ -25,9 +26,10 @@ func NewDefaultTransportChainWithExternalName(name string) *RoundTripperChain {
&ExternalDependencyRoundTripper{name: name},
NewDefaultRetryRoundTripper(),
&JaegerRoundTripper{},
NewDumpRoundTripperEnv(),
&LoggingRoundTripper{},
&LocaleRoundTripper{},
&RequestIDRoundTripper{},
// Ensure this is always last, in order to get the correct dump
NewDumpRoundTripperEnv(),
)
}

0 comments on commit 8b084f5

Please sign in to comment.