Skip to content

AndroidTracer.Companion

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

object Companion

Functions

logErrorMessage

@JvmStatic

fun logErrorMessage(span: Span, message: String)

Helper method to attach an error message to a specific Span. The error message will be added to the provided Span as a standard Error Tag.

Parameters
span the active Span
message the error message you want to attach

logThrowable

@JvmStatic

fun logThrowable(span: Span, throwable: Throwable)

Helper method to attach a Throwable to a specific Span. The Throwable information (class name, message and stacktrace) will be added to the provided Span as standard Error Tags.

Parameters
span the active Span
throwable the Throwable you wan to log
Clone this wiki locally