Could You Please Specify This?

As a software developer, you’ve probably seen features that started out simple, but eventually became a nightmare as new use cases were added for which the code was not designed.

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Using Jaeger to trace an Apache Camel application

This example can be found in the “examples/camel-example-opentracing” folder. Follow the instructions in the readme to build and run the example as distributed with Camel. The example uses a simple logging tracer that outputs the distributed tracing (span) information to the console.

To change this example to use Jaeger there are two steps:

with the Jaeger java client:

Unlike the previous example, the JMS loan broker example has no OpenTracing support “out of the box”. This example can be found in the “examples/camel-example-loan-broker-jms” folder.

However in the case of this example we need to use the explicit programmatic approach. Follow these steps:

Note: in this example, the spans representing the messaging sends and receives are using “span.kind” tags of consumer and producer. These represent asynchronous messaging communications, whereas the client and server span kinds are generally used for RPC communications.

This article has shown how to quickly add OpenTracing instrumentation to some Camel examples and use Jaeger to store and visualise the trace instances.

Add a comment

Related posts:

What Are Native Advertisements?

Perhaps you have noticed somebody in a costume party who’s not wearing a costume? Looks odd doesn’t it. That’s the reason entrepreneurs utilize something called native advertisements. To put it…

The Beauty Of Time Itself

I have begun to say goodbye. I have about two weeks left until I leave my nursing career at the facility I have worked at for over twenty-five years. I don’t care to do the math — but between work…

How to Respond to Unsolicited Parenting Advice

Parenting is a crucial aspect of every child’s life and the ultimate goal of every parent should be to raise happy and healthy adults. Don’t get me wrong. I am not excusing bad behavior or saying…