Class Span
java.lang.Object
com.github.beothorn.agent.recorder.Span
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String[][]static final AtomicLongfinal longlongString[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenter(String name, String className, String method, long entryTime, String[][] arguments, String stacktrace) booleanstatic StringescapeString(String nameMaybeWithReturn) getRoot()inthashCode()leave(long exitTime) To be called after the span has exited.Remove old spans and keep only the current active span.static Spanstatic Spanspan(String name, String className, String method, long entryTime, String[][] arguments, Span parent, String stackTrace) static Spanspan(String name, String className, String method, long entryTime, String[][] arguments, String stackTrace) toJson()toString()
-
Field Details
-
counter
-
entryTime
public final long entryTime -
exitTime
public long exitTime -
returnValue
-
arguments
-
-
Constructor Details
-
Span
-
-
Method Details
-
span
-
span
-
span
-
enter
-
enter
-
getRoot
-
leave
-
leave
To be called after the span has exited.- Parameters:
exitTime- The exit timestamp of the span.returnValue- An array with two elements, the return type and the return value.- Returns:
- Itself
-
toJson
-
escapeString
-
description
-
toString
-
equals
-
hashCode
public int hashCode() -
removeFinishedFunction
Remove old spans and keep only the current active span. This is the last child branch.- Returns:
- the non-active branch
-