The following configurations in the ESB profile of WSO2 EI ensures that ESB data is published to Jaeger. The published data can then be visualized via the Jaeger UI.
Configuring the ESB to connect with Jaeger
Open the synapse.properties
file (stored in the <EI_HOME>/conf/
directory) and configure the properties given below.
Property | Description |
---|---|
opentracing.enable | Set this property to
|
jaeger.sampler.manager.host | Host of Jaeger Sampler Manager. Defaults to |
| Port of Jaeger Sampler Manager. Defaults to |
jaeger.sender.agent.host | Host of Jaeger Sender Agent. Defaults to |
jaeger.sender.agent.port | Port of Jaeger Sender Agent. Defaults to 6831 . |
jaeger.reporter.log.spans | Set this property to true , in order to log reporting of each span. |
jaeger.reporter.max.queue.size | Maximum queue size of Jaeger Reporter. Defaults to 100 . |
jaeger.reporter.flush.interval | Flush interval (milliseconds) of Jaeger Reporter. Defaults to 10000 . |
Enabling message tracing
Follow the instructions give below to enable statistics monitoring and message tracing. You can use message tracing to track a message (including the message payload) throughout a mediation flow.
Step 1: Enabling message tracing for the ESB server
Open the synapse.properties
file (stored in the <EI_HOME>/conf/
directory) and configure the properties given below.
Property | Description |
---|---|
mediation.flow.statistics.tracer.collect.payloads | Set this property to |
| Set this property to
Note that message tracing is not recommended for production environments. |
mediation.flow.statistics.collect.all | Set this property to If you set this property to |
Step 2: Enabling message tracing for ESB artifacts
If you have enabled the mediation.flow.statistics.collect.all
property in the synapse.properties
file as explained in the previous section, you will be monitoring the statistics of all the ESB artifacts (proxy services, REST APIs, sequences, and endpoints) by default. Alternatively, you have the option of enabling statistics for only the required artifacts.
Follow the steps below to enable tracing for a REST API artifact:
- Open the REST API artifact from WSO2 Integration Studio.
- Click the REST API icon (in the design view) to open the Properties tab for the REST API.
To enable mediation tracing for the REST API, select Enable Tracing (shown above).
Follow the steps below to enable tracing for an Endpoint artifact:
- Open the Endpoint artifact from WSO2 Integration Studio.
- Go to the Form view and then set the Trace Enabled value to 'True' as shown below.
Similarly, you can enable tracing for all the required artifacts.