SpannableMetricPlugin

interface SpannableMetricPlugin : MetricPlugin

A plugin that tracks span along with transactions.

Functions

Link copied to clipboard
abstract fun finishSpan()

Finish the span when sub-task is completed.

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 startSpan(operation: String, description: String)

Starts the span for a sub-task.

Link copied to clipboard
abstract fun startTransaction()

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

Inheritors

Link copied to clipboard