Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15260

OpenTracing - camel tracer appears not to activate spans in global tracer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.1
    • Fix Version/s: 3.4.2, 3.5.0
    • Component/s: camel-opentracing
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When using Camel's opentracing implementation alongside other tracers e.g. anything from https://github.com/opentracing-contrib traces do not link up nicely.

      It appears that although Camel has the ActiveSpanManager which correctly tracks the span stack locally the implementation doesn't activate spans in the global tracer.

      This means that when viewing spans you get broken traces for events in the same distributed transaction e.g.

              from("direct:personInJsonToDb")
                      .unmarshal(jsonDataFormat)
                      .bean(DatabaseClient.class, "insert");
      

      You can see 2 root traces in the attached image.

      It's possible to workaround this by intercepting and activating 'manually' but that doesn't seem correct.

      I think we should be activating in the global tracer when we activate locally.

        Attachments

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              mcrmfc Matt Robbins
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: