From 88520ab0a6f2738d54602f4ee79e0b0a6b4e1be6 Mon Sep 17 00:00:00 2001 From: Paul Draper Date: Tue, 14 Mar 2017 04:14:02 -0600 Subject: [PATCH] Fix SpanHttpAsyncClient/ContextAsyncClient order --- .../io/opentracing/contrib/httpcomponents/SpanHttpAsync.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }