diff --git a/httpasyncclient/src/main/java/io/opentracing/contrib/httpcomponents/SpanHttpAsync.java b/httpasyncclient/src/main/java/io/opentracing/contrib/httpcomponents/SpanHttpAsync.java index 3b1d700..845ea2f 100644 --- a/httpasyncclient/src/main/java/io/opentracing/contrib/httpcomponents/SpanHttpAsync.java +++ b/httpasyncclient/src/main/java/io/opentracing/contrib/httpcomponents/SpanHttpAsync.java @@ -17,7 +17,7 @@ public static CloseableHttpAsyncClient trace(CloseableHttpAsyncClient client) { StandardHttpTagger.FACTORY, ContentHttpTagger.FACTORY )); - return new ContextAsyncClient(new SpanHttpAsyncClient(client, GlobalTracer.get(), ContextSpan.DEFAULT, taggerFactory), Context.DEFAULT); + return new SpanHttpAsyncClient(new ContextAsyncClient(client, Context.DEFAULT), GlobalTracer.get(), ContextSpan.DEFAULT, taggerFactory); } }