Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-3494

Uncaught exception cases unclosed spans in tracing [GHI#41469]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Low

      Before reporting an issue

      [x] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      dist/quarkus

      Describe the bug

      When an exception is thrown and tracing is enabled (for example in TokenEndpoint#processGrantRequest), there is a warning logged:

      > INFO [io.quarkus.opentelemetry.runtime.QuarkusContextStorage] (vert.x-eventloop-thread-3) Context in storage not the expected context, Scope.close was not called correctly. Details: OTel context before: ...

      Version

      26.3

      Regression

      [ ] The issue is a regression

      Expected behavior

      The span should be closed

      Actual behavior

      It is kept open if an exception is thrown

      How to Reproduce?

      Add a dummy statement in the method above

      Anything else?

      I'll create a PR

              aschwart@redhat.com Alexander Schwartz
              aschwart@redhat.com Alexander Schwartz
              Keycloak Cloud Native
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: