Search in sources :

Example 1 with TextMapCodec

use of com.uber.jaeger.propagation.TextMapCodec in project cxf by apache.

the class Server method tracer.

@Bean
Tracer tracer() {
    final Metrics metrics = new Metrics(new StatsFactoryImpl(new NullStatsReporter()));
    final Tracer.Builder builder = new Tracer.Builder("camel-server", new RemoteReporter(new HttpSender("http://localhost:14268/api/traces"), 1000, 100, metrics), new ConstSampler(true)).registerExtractor(Builtin.TEXT_MAP, new TextMapCodec(true));
    return builder.build();
}
Also used : RemoteReporter(com.uber.jaeger.reporters.RemoteReporter) Metrics(com.uber.jaeger.metrics.Metrics) NullStatsReporter(com.uber.jaeger.metrics.NullStatsReporter) Tracer(com.uber.jaeger.Tracer) ConstSampler(com.uber.jaeger.samplers.ConstSampler) TextMapCodec(com.uber.jaeger.propagation.TextMapCodec) StatsFactoryImpl(com.uber.jaeger.metrics.StatsFactoryImpl) HttpSender(com.uber.jaeger.senders.HttpSender) Bean(org.springframework.context.annotation.Bean)

Aggregations

Tracer (com.uber.jaeger.Tracer)1 Metrics (com.uber.jaeger.metrics.Metrics)1 NullStatsReporter (com.uber.jaeger.metrics.NullStatsReporter)1 StatsFactoryImpl (com.uber.jaeger.metrics.StatsFactoryImpl)1 TextMapCodec (com.uber.jaeger.propagation.TextMapCodec)1 RemoteReporter (com.uber.jaeger.reporters.RemoteReporter)1 ConstSampler (com.uber.jaeger.samplers.ConstSampler)1 HttpSender (com.uber.jaeger.senders.HttpSender)1 Bean (org.springframework.context.annotation.Bean)1