use of org.apache.cxf.tracing.opentracing.jaxrs.OpenTracingFeature in project cxf by apache.
the class Server method cxfServer.
@Bean
org.apache.cxf.endpoint.Server cxfServer(@Qualifier("cxf") final Tracer tracer) {
final JAXRSServerFactoryBean endpoint = new JAXRSServerFactoryBean();
endpoint.setBus(bus);
endpoint.setAddress("/");
endpoint.setServiceBean(new Catalog());
endpoint.setProvider(new OpenTracingFeature(tracer));
endpoint.setProvider(new JacksonJsonProvider());
return endpoint.create();
}
Aggregations