Java Code Examples for org.springframework.cloud.sleuth.Tracer

The following examples show how to use org.springframework.cloud.sleuth.Tracer. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Bean
@Primary
Tracer openCensusSleuthTracer(
    Sampler sampler,
    Random random,
    SpanNamer spanNamer,
    SpanLogger spanLogger,
    SpanReporter spanReporter,
    TraceKeys traceKeys) {
  return new OpenCensusSleuthTracer(
      sampler, random, spanNamer, spanLogger, spanReporter, traceKeys, /* traceId128= */ true);
}
 
Example 2
Source Project: xxproject   Source File: Application.java    License: Apache License 2.0 4 votes vote down vote up
public HttpResponseInjectingTraceFilter(Tracer tracer,
		SpanInjector<HttpServletResponse> spanInjector) {
	this.tracer = tracer;
	this.spanInjector = spanInjector;
}
 
Example 3
Source Project: xxproject   Source File: Application.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
HttpResponseInjectingTraceFilter responseInjectingTraceFilter(Tracer tracer) {
	return new HttpResponseInjectingTraceFilter(tracer, customHttpServletResponseSpanInjector());
}
 
Example 4
@Autowired
public AddressController(AddressService addressService, Tracer tracer) {
    this.addressService = addressService;
    this.tracer = tracer;
}
 
Example 5
@Autowired
public CustomerController(CustomerService customerService, Tracer tracer) {
    this.customerService = customerService;
    this.tracer = tracer;
}
 
Example 6
@Autowired
public ConnoteController(ConnoteService connoteService, Tracer tracer) {
    this.connoteService = connoteService;
    this.tracer = tracer;
}
 
Example 7
@Autowired
public BookingController(BookingService bookingService, Tracer tracer) {
    this.bookingService = bookingService;
    this.tracer = tracer;
}
 
Example 8
public JdbcTraceAspect(Tracer tracer) {
  this.tracer = tracer;
}