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

camel-zipkin - Generate tracing identifiers on exchange begin if they do not exist

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.23.0
    • camel-zipkin
    • None
    • Unknown

    Description

      The current Zipkin instrumentation generates tracing IDs during client requests (in com.github.kristofa.brave.ClientTracer.startNewSpan()). However, it does not do so for server requests (see ZipkinTracer.ZipkinRoutePolicy.onExchangeBegin()). This means that if the client does not supply its own tracing headers, nothing will be traced until a client request is made from within Camel.

      This can be demonstrated using the camel-example-zipkin modules by removing the Zipkin instrumentation from the client module. When this is done, the service1 module will not report any spans.

      The Zipkin documentation indicates that tracing information should be generated when none is present: "When an incoming request has no trace information attached, we generate a random trace ID and span ID."

      Attachments

        Issue Links

          Activity

            People

              ramu11 Ramu
              chris.snyder Chris Snyder
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: