object SpanUtils
Object with utility methods to process a Span
- Alphabetic
- By Inheritance
- SpanUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val CLIENT: String
- val CLIENT_RECV_EVENT: String
- val CLIENT_SEND_EVENT: String
- val SERVER: String
- val SERVER_RECV_EVENT: String
- val SERVER_SEND_EVENT: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getEventTimestamp(span: Span, eventValue: String): Option[Long]
Finds the timestamp of the log entry in the given span that has a key named "event" with value that matches the given eventValue
Finds the timestamp of the log entry in the given span that has a key named "event" with value that matches the given eventValue
- span
Span from which event timestamp to be read
- eventValue
value if the "event" field to match
- returns
Some(Long) of the timestamp read or None
-
def
getSpanType(span: Span): SpanType
Given a span, this method looks for ('cs', 'cr') and ('sr', 'ss') pairs in log fields with key as "event" to identify a span type.
Given a span, this method looks for ('cs', 'cr') and ('sr', 'ss') pairs in log fields with key as "event" to identify a span type. Presence of ('cs', 'cr') events will result in SpanType.CLIENT and presence of events ('sr', 'ss') events will result in SpanType.SERVER. All other spans will be identified as OTHER
- span
Span to identify
- returns
Some(SpanType) of the given span or None
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isAccumulableSpan(span: Span): Boolean
Given a span check if it is eligible for accumulation and can be a light span
Given a span check if it is eligible for accumulation and can be a light span
- span
span to validate
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )