Search in sources :

Example 1 with OpenTracingFeature

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();
}
Also used : JacksonJsonProvider(com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider) JAXRSServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean) OpenTracingFeature(org.apache.cxf.tracing.opentracing.jaxrs.OpenTracingFeature) JAXRSServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

JacksonJsonProvider (com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider)1 JAXRSServerFactoryBean (org.apache.cxf.jaxrs.JAXRSServerFactoryBean)1 OpenTracingFeature (org.apache.cxf.tracing.opentracing.jaxrs.OpenTracingFeature)1 Bean (org.springframework.context.annotation.Bean)1