Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-2848

setting trace id to MDC in executor

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • java-chassis-3.0.1
    • Java-Chassis
    • None

    Description

      ```xml
      <Appenders>
      <Console name="Console" target="SYSTEM_OUT">
      <PatternLayout pattern="[%d][%t][%p][%c:%L][%X\{SERVICECOMB_TRACE_ID}] %m%n"/>
      </Console>
      </Appenders>
      ```

       

      If configure SERVICECOMB_TRACE_ID in loggers, can output trace id. 

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            liubao68 liubao
            liubao68 liubao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment