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

Incorrect HTTP Method retrieved by camel-tracing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.5.0
    • 3.6.0
    • None
    • Novice

    Description

      Hello,

      The HTTP method is not correctly retrieved by component camel-tracing when, from the Camel route, the HTTP method is set using something else than a String (like HttpMethods.POST for example)

      Info from Claus:

      Ah I can see the little bug

      https://github.com/apache/camel/blob/master/components/camel-tracing/src/main/java/org/apache/camel/tracing/decorators/AbstractHttpSpanDecorator.java#L33

      This one checks only if its a string type, but you use a constant or enum etc.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            ncasaux ncasaux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: