org.springframework.cloud.sleuth.Tracer Java Examples

The following examples show how to use org.springframework.cloud.sleuth.Tracer. 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
Source File: OpenCensusSleuthAutoConfiguration.java    From opencensus-java with Apache License 2.0 5 votes vote down vote up
@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 File: Application.java    From xxproject with 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 File: Application.java    From xxproject with Apache License 2.0 4 votes vote down vote up
@Bean
HttpResponseInjectingTraceFilter responseInjectingTraceFilter(Tracer tracer) {
	return new HttpResponseInjectingTraceFilter(tracer, customHttpServletResponseSpanInjector());
}
 
Example #4
Source File: AddressController.java    From resilient-transport-service with Apache License 2.0 4 votes vote down vote up
@Autowired
public AddressController(AddressService addressService, Tracer tracer) {
    this.addressService = addressService;
    this.tracer = tracer;
}
 
Example #5
Source File: CustomerController.java    From resilient-transport-service with Apache License 2.0 4 votes vote down vote up
@Autowired
public CustomerController(CustomerService customerService, Tracer tracer) {
    this.customerService = customerService;
    this.tracer = tracer;
}
 
Example #6
Source File: ConnoteController.java    From resilient-transport-service with Apache License 2.0 4 votes vote down vote up
@Autowired
public ConnoteController(ConnoteService connoteService, Tracer tracer) {
    this.connoteService = connoteService;
    this.tracer = tracer;
}
 
Example #7
Source File: BookingController.java    From resilient-transport-service with Apache License 2.0 4 votes vote down vote up
@Autowired
public BookingController(BookingService bookingService, Tracer tracer) {
    this.bookingService = bookingService;
    this.tracer = tracer;
}
 
Example #8
Source File: JdbcTraceAspect.java    From docker-kubernetes-by-example-java with Apache License 2.0 4 votes vote down vote up
public JdbcTraceAspect(Tracer tracer) {
  this.tracer = tracer;
}