com.comcast.money.core

Tracer

trait Tracer extends Closeable

Primary API to be used for tracing

Linear Supertypes
Closeable, AutoCloseable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Tracer
  2. Closeable
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val spanFactory: SpanFactory

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(): Unit

    Definition Classes
    Tracer → Closeable → AutoCloseable
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. def record(note: Note[_]): Unit

    Adds a new com.comcast.money.api.Note directly to the current Span if one is present in context.

    Adds a new com.comcast.money.api.Note directly to the current Span if one is present in context.

    import com.comcast.money.core.Money._
    def recordMe() {
      ...
      tracer.record(Result.success)
      tracer.record(Note("that", "thang"))
      ...
    }
    note

    the com.comcast.money.api.Note to be added

  19. def record(key: String, measure: Boolean, propogate: Boolean): Unit

    Captures an arbitrary data element on the current Span if present.

    Captures an arbitrary data element on the current Span if present. If a span is present, a Note will be added to the Span with the key and data element provided

    import com.comcast.money.core.Money._
    def recordMe() {
      ...
      tracer.record("that", "thang")
      ...
    }
    key

    the identifier for the data being captured

    measure

    the value being captured

    propogate

    propogate to children

  20. def record(key: String, measure: Boolean): Unit

    Captures an arbitrary data element on the current Span if present.

    Captures an arbitrary data element on the current Span if present. If a span is present, a Note will be added to the Span with the key and data element provided

    import com.comcast.money.core.Money._
    def recordMe() {
      ...
      tracer.record("that", "thang")
      ...
    }
    key

    the identifier for the data being captured

    measure

    the value being captured

  21. def record(key: String, measure: Long, propogate: Boolean): Unit

    Captures an arbitrary data element on the current Span if present.

    Captures an arbitrary data element on the current Span if present. If a span is present, a Note will be added to the Span with the key and data element provided

    import com.comcast.money.core.Money._
    def recordMe() {
      ...
      tracer.record("that", "thang")
      ...
    }
    key

    the identifier for the data being captured

    measure

    the value being captured

    propogate

    propogate to children

  22. def record(key: String, measure: Long): Unit

    Captures an arbitrary data element on the current Span if present.

    Captures an arbitrary data element on the current Span if present. If a span is present, a Note will be added to the Span with the key and data element provided

    import com.comcast.money.core.Money._
    def recordMe() {
      ...
      tracer.record("that", "thang")
      ...
    }
    key

    the identifier for the data being captured

    measure

    the value being captured

  23. def record(key: String, measure: String, propogate: Boolean): Unit

    Captures an arbitrary data element on the current Span if present.

    Captures an arbitrary data element on the current Span if present. If a span is present, a Note will be added to the Span with the key and data element provided

    import com.comcast.money.core.Money._
    def recordMe() {
      ...
      tracer.record("that", "thang")
      ...
    }
    key

    the identifier for the data being captured

    measure

    the value being captured

    propogate

    propogate to children

  24. def record(key: String, measure: String): Unit

    Captures an arbitrary data element on the current Span if present.

    Captures an arbitrary data element on the current Span if present. If a span is present, a Note will be added to the Span with the key and data element provided

    import com.comcast.money.core.Money._
    def recordMe() {
      ...
      tracer.record("that", "thang")
      ...
    }
    key

    the identifier for the data being captured

    measure

    the value being captured

  25. def record(key: String, measure: Double, propogate: Boolean): Unit

    Captures an arbitrary data element on the current Span if present.

    Captures an arbitrary data element on the current Span if present. If a span is present, a Note will be added to the Span with the key and data element provided

    import com.comcast.money.core.Money._
    def recordMe() {
      ...
      tracer.record("that", "thang")
      ...
    }
    key

    the identifier for the data being captured

    measure

    the value being captured

    propogate

    propogate to children

  26. def record(key: String, measure: Double): Unit

    Captures an arbitrary data element on the current Span if present.

    Captures an arbitrary data element on the current Span if present. If a span is present, a Note will be added to the Span with the key and data element provided

    import com.comcast.money.core.Money._
    def recordMe() {
      ...
      tracer.record("that", "thang")
      ...
    }
    key

    the identifier for the data being captured

    measure

    the value being captured

  27. def startSpan(key: String): Unit

    Creates a new span if one is not present; or creates a child span for the existing Span if one is present

    Creates a new span if one is not present; or creates a child span for the existing Span if one is present

    import com.comcast.money.core.Money._
    def somethingMeaningful() {
      try {
       tracer.startSpan("something")
       ...
     } finally {
       tracer.stopSpan()
     }
    }
    key

    an identifier for the span

  28. def startTimer(key: String): Unit

    Starts a new timer on the current Span for the key provided

    Starts a new timer on the current Span for the key provided

    import com.comcast.money.core.Money._
    
    def timeThisChumpie() {
      try {
        tracer.startTimer("chumpie")
        ...
      } finally {
        tracer.stopTimer("chumpie")
      }
    }
    key

    the identifier for the timer

  29. def stopSpan(result: Boolean = true): Unit

    Stops the current span, adding a note that indicates whether it succeeded or failed.

    Stops the current span, adding a note that indicates whether it succeeded or failed.

    import com.comcast.money.core.Money._
    def somethingMeaningful() {
      try {
       tracer.startSpan("something")
       ...
     } finally {
       tracer.stopSpan(Result.success)
     }
    }
    result

    The result of the span, this will be Result.success or Result.failed

  30. def stopTimer(key: String): Unit

    Stops the timer on the current Span for the key provided.

    Stops the timer on the current Span for the key provided. This method assumes that a timer was started for the key, ususally used in conjunction with startTimer

    import com.comcast.money.core.Money._
    
    def timeThisChumpie() {
      try {
        tracer.startTimer("chumpie")
        ...
      } finally {
        tracer.stopTimer("chumpie")
      }
    }
    key

    the identifier for the timer

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def time(key: String): Unit

    Captures a timestamp for the key provided on the current Span if present.

    Captures a timestamp for the key provided on the current Span if present. If a Span is present, a Note will be added to the Span.

    import com.comcast.money.core.Money._
    def timeMe() {
      ...
      tracer.time("something")
      ...
    }
    key

    the identifier for the timestamp being captured

  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped