Class

com.github.levkhomich.akka.tracing

TracingExtensionImpl

Related Doc: package tracing

Permalink

class TracingExtensionImpl extends Extension

Akka extension providing tracing functionality.

Linear Supertypes
Extension, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TracingExtensionImpl
  2. Extension
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TracingExtensionImpl(system: ActorSystem)

    Permalink

    system

    parent actor system

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def createChild(ts: BaseTracingSupport, parent: BaseTracingSupport): Option[SpanMetadata]

    Permalink

    Creates parent-child relationship between specified messages.

    Creates parent-child relationship between specified messages. Child message is sampled only if parent message was already sampled.

    ts

    child message

    parent

    parent message

    returns

    Some(metadata) if child span was sampled or None otherwise

  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def exportMetadata(ts: BaseTracingSupport): Option[SpanMetadata]

    Permalink

    Exports tracing metadata related to specified message.

    Exports tracing metadata related to specified message.

    ts

    traced message

    returns

    Some(metadata) if span was found None if it was not sampled or was already flushed

  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flush(ts: BaseTracingSupport): Unit

    Permalink

    Flushes all tracing data related to request.

    Flushes all tracing data related to request.

    ts

    traced message

  12. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def importMetadata(ts: BaseTracingSupport, extMetadata: SpanMetadata, service: String): Unit

    Permalink

    Imports metadata to the system, allowing to continue tracing.

    Imports metadata to the system, allowing to continue tracing. This call ignores sampling policy.

    ts

    child message

    extMetadata

    metadata to be imported

    service

    service name

  15. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def record(ts: BaseTracingSupport, annotation: TracingAnnotation): Unit

    Permalink

    Attaches annotation to message's span.

    Attaches annotation to message's span.

    ts

    traced message

    annotation

    recorded annotation

  20. def record(ts: BaseTracingSupport, e: Throwable): Unit

    Permalink

    Attaches stack trace annotation to message's span.

    Attaches stack trace annotation to message's span.

    ts

    traced message

    e

    exception to be added

  21. def record(ts: BaseTracingSupport, text: String): Unit

    Permalink

    Attaches text annotation to message's span.

    Attaches text annotation to message's span.

    ts

    traced message

    text

    annotation text

  22. def recordKeyValue(ts: BaseTracingSupport, key: String, value: ByteBuffer): Unit

    Permalink

    Attaches key-value annotation to message's span.

    Attaches key-value annotation to message's span.

    ts

    traced message

    key

    key

    value

    value

  23. def recordKeyValue(ts: BaseTracingSupport, key: String, value: Array[Byte]): Unit

    Permalink

    Attaches key-value annotation to message's span.

    Attaches key-value annotation to message's span.

    ts

    traced message

    key

    key

    value

    value

  24. def recordKeyValue(ts: BaseTracingSupport, key: String, value: Short): Unit

    Permalink

    Attaches key-value annotation to message's span.

    Attaches key-value annotation to message's span.

    ts

    traced message

    key

    key

    value

    value

  25. def recordKeyValue(ts: BaseTracingSupport, key: String, value: Double): Unit

    Permalink

    Attaches key-value annotation to message's span.

    Attaches key-value annotation to message's span.

    ts

    traced message

    key

    key

    value

    value

  26. def recordKeyValue(ts: BaseTracingSupport, key: String, value: Boolean): Unit

    Permalink

    Attaches key-value annotation to message's span.

    Attaches key-value annotation to message's span.

    ts

    traced message

    key

    key

    value

    value

  27. def recordKeyValue(ts: BaseTracingSupport, key: String, value: Long): Unit

    Permalink

    Attaches key-value annotation to message's span.

    Attaches key-value annotation to message's span.

    ts

    traced message

    key

    key

    value

    value

  28. def recordKeyValue(ts: BaseTracingSupport, key: String, value: Int): Unit

    Permalink

    Attaches key-value annotation to message's span.

    Attaches key-value annotation to message's span.

    ts

    traced message

    key

    key

    value

    value

  29. def recordKeyValue(ts: BaseTracingSupport, key: String, value: String): Unit

    Permalink

    Attaches key-value annotation to message's span.

    Attaches key-value annotation to message's span.

    ts

    traced message

    key

    key

    value

    value

  30. def sample(ts: BaseTracingSupport, service: String, force: Boolean = false): Option[SpanMetadata]

    Permalink

    Applies sampling to specified message on server side.

    Applies sampling to specified message on server side. If message was sampled, starts a trace and adds ServerReceived annotation.

    Sampling rate is defined by akka.tracing.sample-rate setting.

    ts

    traced message

    service

    service name

    force

    true if request should be traced ignoring akka.tracing.sample-rate setting

    returns

    Some(metadata) if span was created or None otherwise

  31. def sampleClient(ts: BaseTracingSupport, service: String, force: Boolean = false): Option[SpanMetadata]

    Permalink

    Applies sampling to specified message on client side.

    Applies sampling to specified message on client side. If message was sampled, starts a trace and adds ClientSend annotation.

    Sampling rate is defined by akka.tracing.sample-rate setting.

    ts

    traced message

    service

    service name

    force

    true if request should be traced ignoring akka.tracing.sample-rate setting

    returns

    Some(metadata) if span was sampled or None otherwise

  32. def start(ts: BaseTracingSupport, service: String): Unit

    Permalink

    Marks request processing start.

    Marks request processing start. Sampling must be performed before this call.

    ts

    traced message

    service

    service name

  33. def submitSpans(spans: TraversableOnce[Span]): Unit

    Permalink

    Submits specified spans skipping any content checks.

    Submits specified spans skipping any content checks.

    spans

    spans to be sent

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

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finish(ts: BaseTracingSupport): Unit

    Permalink

    Marks request processing finish by adding ServerSend annotation, flushes associated trace.

    Marks request processing finish by adding ServerSend annotation, flushes associated trace.

    ts

    traced message

    Annotations
    @deprecated
    Deprecated

    (Since version 0.5) Use record(ts, TracingAnnotations.ServerSend) instead

  2. def forcedSample(ts: BaseTracingSupport, service: String): Option[SpanMetadata]

    Permalink

    Starts a trace and adds ClientSend annotation to it.

    Starts a trace and adds ClientSend annotation to it.

    This call ignores akka.tracing.sample-rate setting.

    ts

    traced message

    service

    service name

    returns

    Some(metadata) if span was sampled or None otherwise

    Annotations
    @deprecated
    Deprecated

    (Since version 0.5) Use sample(ts, service, force = true)

Inherited from Extension

Inherited from AnyRef

Inherited from Any

Ungrouped