add Context Item Extractor
fun <T : CoroutineContext.Element> addContextItemExtractor(key: CoroutineContext.Key<T>, extractor: suspend (T) -> EventItems)
Function to add a ContextItemExtractor that extracts an item map from a coroutine context element.
Parameters
key
key to a coroutine context element
extractor
lambda that returns extracted context items