Polish CompositePropagationFactory

Remove shaded Guava import
pull/37018/head
Moritz Halbritter 1 year ago
parent 0a23e724ee
commit 975e2d110c

@ -28,7 +28,6 @@ import brave.propagation.Propagation;
import brave.propagation.Propagation.Factory; import brave.propagation.Propagation.Factory;
import brave.propagation.TraceContext; import brave.propagation.TraceContext;
import brave.propagation.TraceContextOrSamplingFlags; import brave.propagation.TraceContextOrSamplingFlags;
import graphql.com.google.common.collect.Streams;
import io.micrometer.tracing.BaggageManager; import io.micrometer.tracing.BaggageManager;
import io.micrometer.tracing.brave.bridge.W3CPropagation; import io.micrometer.tracing.brave.bridge.W3CPropagation;
@ -79,7 +78,7 @@ class CompositePropagationFactory extends Propagation.Factory {
@Override @Override
public TraceContext decorate(TraceContext context) { 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)) .map((factory) -> factory.decorate(context))
.filter((decorated) -> decorated != context) .filter((decorated) -> decorated != context)
.findFirst() .findFirst()

Loading…
Cancel
Save