Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-11812

Investigate whether reporting of Analytics API through ReportTrafficWorker is correct

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • System
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      When enabled (through report_traffic: true in settings.yml), ReportTrafficWorker reports the usage of the system APIs to backend.

      However, reporting Analytics API might not be exactly correct. There is a condition for reporting this API:

      after_action :report_traffic, :if => :api_request?
      

      Which only evaluates to true when params[:provider_key].present?, but nowadays all API calls are supposed to be sent with Service Tokens, so this condition will not be satisfied in most of cases, and the usage for Analytics API would be underreported, or not reported at all.

              Unassigned Unassigned
              rhn-support-dmayorov Daria Mayorova
              Joan Lledo Joan Lledo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: