@SuppressWarnings("unchecked") HttpServerHandler<ServerHttpRequest, ServerHttpResponse> handler() { if (this.handler == null) { this.handler = HttpServerHandler.create( this.beanFactory.getBean(HttpTracing.class), new TraceWebFilter.HttpAdapter()); } return this.handler; }
TracePostZuulFilter(HttpTracing httpTracing) { this.handler = HttpServerHandler.create(httpTracing, new HttpServletAdapter()); this.tracer = httpTracing.tracing().tracer(); }
@Inject TracingApplicationEventListener(HttpTracing httpTracing, EventParser parser) { tracer = httpTracing.tracing().tracer(); serverHandler = HttpServerHandler.create(httpTracing, new Adapter()); extractor = httpTracing.tracing().propagation().extractor(GETTER); this.parser = parser; }
SparkTracing(HttpTracing httpTracing) { // intentionally hidden constructor tracer = httpTracing.tracing().tracer(); handler = HttpServerHandler.create(httpTracing, ADAPTER); extractor = httpTracing.tracing().propagation().extractor(Request::headers); }
TracingRoutingContextHandler(HttpTracing httpTracing) { tracer = httpTracing.tracing().tracer(); serverHandler = HttpServerHandler.create(httpTracing, new VertxHttpServerAdapter()); extractor = httpTracing.tracing().propagation().extractor(GETTER); }
TracingFilter(HttpTracing httpTracing) { tracer = httpTracing.tracing().tracer(); currentTraceContext = httpTracing.tracing().currentTraceContext(); handler = HttpServerHandler.create(httpTracing, ADAPTER); extractor = httpTracing.tracing().propagation().extractor(GETTER); }
@SuppressWarnings("unchecked") ZipkinProviderDelegate(HttpTracing httpTracing) { this.httpTracing = httpTracing; this.extractor = httpTracing.tracing().propagation().extractor(extractor()); this.handler = HttpServerHandler.create(httpTracing, new ProviderInvocationAdapter()); }
@SuppressWarnings("unchecked") HttpServerHandler<ServerHttpRequest, ServerHttpResponse> handler() { if (this.handler == null) { this.handler = HttpServerHandler.create( this.beanFactory.getBean(HttpTracing.class), new TraceWebFilter.HttpAdapter()); } return this.handler; }
TracePostZuulFilter(HttpTracing httpTracing) { this.handler = HttpServerHandler.create(httpTracing, new HttpServletAdapter()); this.tracer = httpTracing.tracing().tracer(); }
SparkTracing(HttpTracing httpTracing) { // intentionally hidden constructor tracer = httpTracing.tracing().tracer(); handler = HttpServerHandler.create(httpTracing, ADAPTER); extractor = httpTracing.tracing().propagation().extractor(Request::headers); }
@SuppressWarnings("unchecked") ZipkinProviderDelegate(HttpTracing httpTracing) { this.httpTracing = httpTracing; this.extractor = httpTracing.tracing().propagation().extractor(extractor()); this.handler = HttpServerHandler.create(httpTracing, new ProviderInvocationAdapter()); }
@SuppressWarnings("unchecked") ZipkinProviderDelegate(HttpTracing httpTracing) { this.httpTracing = httpTracing; this.extractor = httpTracing.tracing().propagation().extractor(extractor()); this.handler = HttpServerHandler.create(httpTracing, new ProviderInvocationAdapter()); }
TracingHttpHandler(HttpTracing httpTracing, HttpHandler next) { this.currentTraceContext = httpTracing.tracing().currentTraceContext(); this.serverHandler = HttpServerHandler.create(httpTracing, new Adapter()); this.extractor = httpTracing.tracing().propagation().extractor(GETTER); this.next = next; }
protected TraceScopeHolder<TraceScope> startTraceSpan(final Map<String, List<String>> requestHeaders, URI uri, String method) { final Request request = HttpAdapterFactory.request(requestHeaders, uri, method); final HttpServerAdapter<Request, ?> adapter = HttpServerAdapterFactory.create(request); final HttpServerHandler<Request, ?> handler = HttpServerHandler.create(brave, adapter); Span span = handler.handleReceive( brave .tracing() .propagation() .extractor(adapter::requestHeader), request); // If the service resource is using asynchronous processing mode, the trace // scope will be closed in another thread and as such should be detached. SpanInScope scope = null; if (isAsyncResponse() && span != null) { // Do not modify the current context span propagateContinuationSpan(span); } else if (span != null) { scope = brave.tracing().tracer().withSpanInScope(span); } return new TraceScopeHolder<TraceScope>(new TraceScope(span, scope), scope == null /* detached */); }
final HttpServerAdapter<?, Response> adapter = HttpServerAdapterFactory.create(response); final HttpServerHandler<?, Response> handler = HttpServerHandler.create(brave, adapter); handler.handleSend(response, null, scope.getSpan()); } finally {
protected TraceScopeHolder<TraceScope> startTraceSpan(final Map<String, List<String>> requestHeaders, URI uri, String method) { final Request request = HttpAdapterFactory.request(requestHeaders, uri, method); final HttpServerAdapter<Request, ?> adapter = HttpServerAdapterFactory.create(request); final HttpServerHandler<Request, ?> handler = HttpServerHandler.create(brave, adapter); Span span = handler.handleReceive( brave .tracing() .propagation() .extractor(adapter::requestHeader), request); // If the service resource is using asynchronous processing mode, the trace // scope will be closed in another thread and as such should be detached. SpanInScope scope = null; if (isAsyncResponse() && span != null) { // Do not modify the current context span propagateContinuationSpan(span); } else if (span != null) { scope = brave.tracing().tracer().withSpanInScope(span); } return new TraceScopeHolder<TraceScope>(new TraceScope(span, scope), scope == null /* detached */); }
final HttpServerAdapter<?, Response> adapter = HttpServerAdapterFactory.create(response); final HttpServerHandler<?, Response> handler = HttpServerHandler.create(brave, adapter); handler.handleSend(response, null, scope.getSpan()); } finally {