Closed svenhaag closed 4 years ago
maybe you have an old version of brave? the current code has a factory method and also an injected constructor like you asked..
@Inject TracingClientFilter(HttpTracing httpTracing) {
if (httpTracing == null) throw new NullPointerException("HttpTracing == null");
tracer = httpTracing.tracing().tracer();
handler = HttpClientHandler.create(httpTracing);
}
Indeed, thanks for the quick reply. This can be closed then.
Feature: Currently, when building a TracingClientFilter via
brave.jaxrs2.TracingClientFilter#create(brave.Tracing)
it's doingbrave.http.HttpTracing#create(Tracing)
internally, which setsserverName = ""
. Unfortunatelly there seems no possibility to set it. It would be great to have a another create method which takesbrave.http.HttpTracing
, e.g.:HttpTracing.create(tracing).clientOf("my-server-name")
.