Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-3525

Convert TraceResponseFilter to use standard the JAX-RS API

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 2025-05-07 - API
    • None
    • None

      This filter sets the “traceresponse” header to the HTTP response including the trace ID, span ID and trace flags which is a good practice and also needed by IQE.

      At the moment, we have two implementations of this filter that does the same:
      In swatch-common-trace-response, this implementation is based on Resteasy Reactive that we are replacing
      In swatch-core, this is a JAX-RS standard solution that is used only in the Spring Boot services.

      Proposal change: https://github.com/RedHatInsights/rhsm-subscriptions/commit/1a0f0925a84b8cf8452d6aaa3cfac68ace620bdc

      Acceptance Criteria:

      • Update the swatch-common-trace-response not to use the Quarkus bom. So it can be used by Quarkus and Spring Boot services
      • Copy swach-core implementation to the swatch-common-trace-response one, and remove it
      • Ensures the standard solution works for Spring Boot and Quarkus services

       

      Testing

      • Thorough Unit Tests are sufficient for this, there would be no additional value added by making IQE tests specifically for this
      • Since this affects APIs, existing IQE tests will exercise this change anyway

              jcarvaja@redhat.com Jose Carvajal Hilario
              jcarvaja@redhat.com Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: