Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8169

CXF opentracing - Span#finish is never called in case of client timeouts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.11, 3.3.4, 3.4.0
    • 3.3.5, 3.2.12, 3.4.0
    • Tracing
    • None
    • Unknown

    Description

      While using the CXF opentracing feature with any CXF client, we see that in case of connectionTimeout or receiveTimeout the span#finish is never called by the OpenTracing client interceptors. We can clearly see that inside the OpenTracingClientStartInterceptor from the OpenTracingClientFeature there is no handleFault() method defined to handle such case.

      I wrote the test allowing to reproduce this behavior using a JAX-RS client and a really simplistic fix on the CustomOpenTracingClientFeature where the current OpenTracingClientStartInterceptor is overriden in order to add such handleFault method and using the OpenTracingClientStopInterceptor#handleMethod in order to trigger the stop.

      Thanks in advance for your feedback.

      Attachments

        1. cxf-reproducer.tar.gz
          4 kB
          Baptiste AIGLIN

        Activity

          People

            reta Andriy Redko
            baiglin Baptiste AIGLIN
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: