This file contains 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
import java.util.{Map => JMap} | |
import com.twitter.inject.logging.MDCInitializer | |
import org.slf4j.MDC | |
import scala.concurrent.ExecutionContext | |
/** | |
* An `ExecutionContext` which takes the calling thread's MDC context map and copies it into | |
* the thread of where the runnable will be executed. As the `prepare` method of `ExecutionContext` |
This file contains 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
import com.hotels.dps.rest.filters.LogLevelFilter._ | |
import com.twitter.finagle.http.{Request, Response} | |
import com.twitter.finagle.{Service, SimpleFilter} | |
import com.twitter.util.Future | |
import org.slf4j.MDC | |
object LogLevelFilter { | |
val LogLevelKey: String = "X-Log-Level" | |
} |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am ryanb93 on github. | |
* I am ryanb93 (https://keybase.io/ryanb93) on keybase. | |
* I have a public key whose fingerprint is 0159 7AF2 4B89 92B5 D8C3 179A 98AF F462 EDAC 995B | |
To claim this, I am signing this object: |