-
public class AndroidTracer.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static AndroidTracer.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitlogThrowable(Span span, Throwable throwable)Helper method to attach a Throwable to a specific Span. final UnitlogErrorMessage(Span span, String message)Helper method to attach an error message to a specific Span. -
-
Method Detail
-
logThrowable
final Unit 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 Spanthrowable- the Throwable you wan to log
-
logErrorMessage
final Unit logErrorMessage(Span span, String message)
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 Spanmessage- the error message you want to attach
-
-
-
-