MetricPlugin

interface MetricPlugin

A plugin that can be used to capture metrics in Client.

Functions

Link copied to clipboard
abstract fun finishTransaction()

Mark the measuring transaction finished once the task is completed.

Link copied to clipboard
open fun logTransaction(message: String? = "")

Can be used to log this transaction.

Link copied to clipboard
abstract fun onError(throwable: Throwable)

Invoked when there is any error in the ongoing task. The metrics tool can use this information to attach to the ongoing transaction.

Link copied to clipboard
abstract fun startTransaction()

Start the measurement of the metrics as soon as task is started.

Inheritors

Link copied to clipboard
Link copied to clipboard