Uploaded image for project: 'Trapperkeeper'
  1. Trapperkeeper
  2. TK-470

Add Mapped Diagnostic Context support to Jetty servers

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Done
    • None
    • None
    • TrapperKeeper
    • None
    • Needs Assessment

    Description

      The SLF4J library implements a concept called the "Mapped Diagnostic Context" or MDC:

      https://logback.qos.ch/manual/mdc.html

      The MDC is a thread-local hash map where info can be stored that is easily accessible to loggers using the %X or %mdc log patterns. The MDC is very useful for associating diagnostic data with HTTP requests, for example:

      • JRuby processing time used to service a request.
      • Items such as client certname or certificate attributes.

      Desired Functionality

      The TrapperKeeper Jetty server should manage the MDC such that:

      • Any items placed into the MDC of a worker thread during a request are cleared at the end the request.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chuck Charlie Sharpsteen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support