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

Incorrect HTTP Method retrieved by camel-tracing

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment