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

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