# Tracing output not joined correctly when using OpenTelemetry with Jaeger

**URL:** <https://community.temporal.io/t/tracing-output-not-joined-correctly-when-using-opentelemetry-with-jaeger/10360>\
**Category:** Community Support\
**Tags:** java-sdk, tracing, opentracing\
**Created:** [December 12, 2023, 7:06pm UTC](https://community.temporal.io/t/tracing-output-not-joined-correctly-when-using-opentelemetry-with-jaeger/10360 "2023-12-12T19:06:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev.nilesh.patel](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@dev.nilesh.patel](https://community.temporal.io/u/dev.nilesh.patel)\
**Post date:** [December 12, 2023, 7:06pm UTC](https://community.temporal.io/t/tracing-output-not-joined-correctly-when-using-opentelemetry-with-jaeger/10360/1 "2023-12-12T19:06:40Z")

</div>

Hi Everyone, I am trying to use Temporal Tracing with opentelemetry. To try this out, I downloaded the samples and ran them to see what output I see. Looks like when I use OpenTelemetry, I don’t get the correct output but OpenTracing works just fine.

Does anyone know if I am missing some configuration that causes this behavior or there is an underlying issue. More details of my repro below.

Using sample from: [samples-java/core/src/main/java/io/temporal/samples/tracing at main · temporalio/samples-java · GitHub](https://github.com/temporalio/samples-java/tree/main/core/src/main/java/io/temporal/samples/tracing)

Executing command (for opentelemetry): `./gradlew -q execute -PmainClass=io.temporal.samples.opentracing.Starter`

Actual output in Jaeger UI when using OpenTelemetry :

```auto
temporal-sample-opentelemetry: SignalWithStartWorkflow:TracingWorkflow
temporal-sample-opentelemetry: HandleSignal:setLanguage
        temporal-sample-opentelemetry: RunWorkflow:TracingWorkflow
            temporal-sample-opentelemetry: StartChildWorkflow:TracingChildWorkflow

```

Expected output (opentracing works correctly and produces below trace):

```auto
temporal-sample-opentelemetry: SignalWithStartWorkflow:TracingWorkflow
temporal-sample-opentelemetry: HandleSignal:setLanguage
        temporal-sample-opentelemetry: RunWorkflow:TracingWorkflow
            temporal-sample-opentelemetry: StartChildWorkflow:TracingChildWorkflow
                temporal-sample-opentelemetry: RunWorkflow:TracingChildWorkflow
                     temporal-sample-opentelemetry: StartActivity:Greet
                           temporal-sample-opentelemetry: RunActivity:Greet

```

Thanks in advance for help.

---

<div class="post-metadata">

**Author:** ![dev.nilesh.patel](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@dev.nilesh.patel](https://community.temporal.io/u/dev.nilesh.patel)\
**Post date:** [December 14, 2023, 6:11pm UTC](https://community.temporal.io/t/tracing-output-not-joined-correctly-when-using-opentelemetry-with-jaeger/10360/2 "2023-12-14T18:11:56Z")

</div>

Nvmd I can’t repro this issue. Only difference is, while playing with this code, I was generating traces for OpenTracing and OpenTelemetry at the same time to send to different backend. When I switch back to single backend at a time, things work as I expect it to.

---

<div class="post-metadata">

**Author:** ![Josh\_Smith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/josh_smith/32/4569_2.png) [@Josh\_Smith](https://community.temporal.io/u/Josh_Smith)\
**Post date:** [December 14, 2023, 7:35pm UTC](https://community.temporal.io/t/tracing-output-not-joined-correctly-when-using-opentelemetry-with-jaeger/10360/3 "2023-12-14T19:35:19Z")

</div>

Glad you were able to figure it out!
