Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-4276

idmsvc-backend: print context information in log

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Identity Management
    • None
    • IdM Insights Sprint 40, IdM Insights Sprint 41, IdM Insights Sprint 42, IdM Insights Sprint 43
    • 2

      Goal: 

      • As an operator, I want the contextual information is displayed for every log message that meet with:

      Acceptance Criteria:

      • Given any request
        When a log message is printed out
        Then it provides contextual information, such as: request-id, xrhid.type, xrhid.user, xrhid.cn, xrhid.org_id
      • All the slog statements are calling to the Context version.

      Additional Information:

      • Update the slog multi-handler so it reads the context information and aggregate the information to the log.
      • Add more log messages keeping in mind the levels of the logging best practices.
      • Refactor public methods to receive the golang context as first parameter.
      • Private methods are not impacted.

       

            avisiedo@redhat.com Alejandro Visiedo
            avisiedo@redhat.com Alejandro Visiedo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: