SyncDurationMetricPlugin

interface SyncDurationMetricPlugin : SpannableMetricPlugin

An spannable metric plugin for sync response handling task.

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 override 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
open fun shouldReport(isInitialSync: Boolean, isAfterPause: Boolean): Boolean
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.