emitMessage
fun emitMessage(level: ComponentsReporter.LogLevel, categoryKey: String, message: String, samplingFrequency: Int = 0, metadata: Map<String, Any>? = null)
Emit a message that can be logged or escalated by the logger implementation.
Parameters
level
One of LogLevel.WARNING, LogLevel.ERROR, LogLevel.FATAL.
categoryKey
Unique key for aggregating all occurrences of given error in error aggregation systems
message
Message to log
samplingFrequency
sampling frequency to override default one
metadata
map of metadata associated with the message