trait SpanBuilder extends AnyRef
A Span pans are created by calling the buildSpan(operationName) method on Kamon’s companion object as shown below:
- Alphabetic
- By Inheritance
- SpanBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
start(): Span
Starts a span.
Starts a span. Should only be used when full control of start and end are needed. Returns a
Span
with the methodfinish
.
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
- @throws( ... ) @native()
-
def
withSpan[A](future: ⇒ Future[A])(implicit context: ExecutionContext): Future[A]
The span registers 'now' up to the moment that the given
future
completes.The span registers 'now' up to the moment that the given
future
completes.This method may measure more than is obvious. It measures: * the evaluation of the (by name) parameter
future
* in case the future is not yet completed: the delay until the constructed Future is scheduled in the givenExecutionContext
* in case the future is not yet completed: the actual execution of the Future * the time it takes to schedule finishing the spanSource: https://github.com/erikvanoosten/metrics-scala/blob/c20187a1ed09f50a523b310e3a7ffa992564afb3/metrics-scala/src/main/scala/nl/grons/metrics4/scala/Timer.scala#L60
-
def
withSpan[T](f: ⇒ T): T
Runs f and recording it as a span