Skip to content

Commit

Permalink
Polish CompositePropagationFactory
Browse files Browse the repository at this point in the history
Remove shaded Guava import
  • Loading branch information
mhalbritter committed Jun 19, 2023
1 parent 0a23e72 commit 975e2d1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import brave.propagation.Propagation.Factory;
import brave.propagation.TraceContext;
import brave.propagation.TraceContextOrSamplingFlags;
import graphql.com.google.common.collect.Streams;
import io.micrometer.tracing.BaggageManager;
import io.micrometer.tracing.brave.bridge.W3CPropagation;

Expand Down Expand Up @@ -79,7 +78,7 @@ public <K> Propagation<K> create(Propagation.KeyFactory<K> keyFactory) {

@Override
public TraceContext decorate(TraceContext context) {
return Streams.concat(this.injectors.stream(), this.extractors.stream())
return Stream.concat(this.injectors.stream(), this.extractors.stream())
.map((factory) -> factory.decorate(context))
.filter((decorated) -> decorated != context)
.findFirst()
Expand Down

0 comments on commit 975e2d1

Please sign in to comment.