Last active
November 25, 2018 08:04
-
-
Save adamw/87d6a3ea8437aa9583c9bb4eb7590b2c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SetCorrelationIdInMDCFilter extends Filter[ILoggingEvent] { | |
override def decide(event: ILoggingEvent): FilterReply = { | |
CorrelationId().foreach(MDC.put("cid", _)) | |
FilterReply.NEUTRAL | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment