case class Span(traceId: TraceId, _serviceName: Option[String], _name: Option[String], annotations: Seq[ZipkinAnnotation], bAnnotations: Seq[BinaryAnnotation], endpoint: Endpoint, created: Time) extends Product with Serializable
The span itself is an immutable datastructure. Mutations are done through copying & updating span references elsewhere.
- traceId
Contains the Trace id (same for whole trace), Span id (same for just one rpc call) and parent id (links to the parent span in this trace, if None this is the root span)
- _serviceName
The name of the service handling the RPC
- _name
The name of the RPC method
- annotations
A sequence of annotations made in this span
- bAnnotations
Key-Value annotations, used to attach non timestamped data
- endpoint
This is the local endpoint the span was created on.
- created
Optional span creation time.
- Alphabetic
- By Inheritance
- Span
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Span(traceId: TraceId, _serviceName: Option[String], _name: Option[String], annotations: Seq[ZipkinAnnotation], bAnnotations: Seq[BinaryAnnotation], endpoint: Endpoint)
- new Span(traceId: TraceId, _serviceName: Option[String], _name: Option[String], annotations: Seq[ZipkinAnnotation], bAnnotations: Seq[BinaryAnnotation], endpoint: Endpoint, created: Time)
- traceId
Contains the Trace id (same for whole trace), Span id (same for just one rpc call) and parent id (links to the parent span in this trace, if None this is the root span)
- _serviceName
The name of the service handling the RPC
- _name
The name of the RPC method
- annotations
A sequence of annotations made in this span
- bAnnotations
Key-Value annotations, used to attach non timestamped data
- endpoint
This is the local endpoint the span was created on.
- created
Optional span creation time.
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 _name: Option[String]
- val _serviceName: Option[String]
- val annotations: Seq[ZipkinAnnotation]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bAnnotations: Seq[BinaryAnnotation]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val created: Time
- val endpoint: Endpoint
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def idString: String
- returns
a pretty string for this span ID.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
- 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()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val serviceName: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toThrift: thrift.thrift.Span
- val traceId: TraceId
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()