com.comcast.money.spring3

SpringTracer

class SpringTracer extends Tracer

Simply wraps the existing money tracer so it can be injected. Delegates all calls to the configured Money tracer in the event that Money or tracing is disabled

Annotations
@Component()
Linear Supertypes
Tracer, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SpringTracer
  2. Tracer
  3. Closeable
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SpringTracer()

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
    SpringTracer → 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.of("that", "thang"))
      ...
    }
    note

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

    Definition Classes
    SpringTracer → Tracer
  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

    Definition Classes
    SpringTracer → Tracer
  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

    Definition Classes
    SpringTracer → Tracer
  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

    Definition Classes
    SpringTracer → Tracer
  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

    Definition Classes
    SpringTracer → Tracer
  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

    Definition Classes
    SpringTracer → Tracer
  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

    Definition Classes
    SpringTracer → Tracer
  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

    Definition Classes
    SpringTracer → Tracer
  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

    Definition Classes
    SpringTracer → Tracer
  27. val spanFactory: SpanFactory

    Definition Classes
    SpringTracer → Tracer
  28. 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

    Definition Classes
    SpringTracer → Tracer
  29. 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

    Definition Classes
    SpringTracer → Tracer
  30. 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

    Definition Classes
    SpringTracer → Tracer
  31. 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

    Definition Classes
    SpringTracer → Tracer
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. 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

    Definition Classes
    SpringTracer → Tracer
  34. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Tracer

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped