AndroidTracer.Companion - DataDog/dd-sdk-android GitHub Wiki
object Companion
Functions
logErrorMessage
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
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 |