Class/Object

kamon.trace.Span

Local

Related Docs: object Local | package Span

Permalink

final class Local extends Delayed

A writable Span created on this process and implementing all the capabilities defined by the Span interface.

Linear Supertypes
Delayed, Span, Operation, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Local
  2. Delayed
  3. Span
  4. Operation
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Local(id: Identifier, parentId: Identifier, trace: Trace, position: Position, kind: Kind, localParent: Option[Span], initialOperationName: String, spanTags: Builder, metricTags: Builder, createdAt: Instant, initialMarks: List[Mark], initialLinks: List[Link], initialTrackMetrics: Boolean, tagWithParentOperation: Boolean, includeErrorStacktrace: Boolean, isDelayed: Boolean, clock: Clock, preFinishHooks: Array[PreFinishHook], onFinish: (Finished) ⇒ Unit, sampler: Sampler)

    Permalink

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 doNotTrackDelayedSpanMetrics(): Delayed

    Permalink

    Disables tracking of the span.elapsed-time and span.wait-time metrics for this Span.

    Disables tracking of the span.elapsed-time and span.wait-time metrics for this Span.

    Definition Classes
    LocalDelayed
  7. def doNotTrackMetrics(): Span

    Permalink

    Disables tracking of metrics for this Span.

    Disables tracking of metrics for this Span.

    Definition Classes
    LocalSpan
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def fail(message: String, throwable: Throwable): Span

    Permalink

    Marks the operation represented by this Span as failed and adds the provided message as a Span tag using the "error.message" key and optionally adds the "error.stacktrace" Span tag with the stack trace from the provided throwable.

    Marks the operation represented by this Span as failed and adds the provided message as a Span tag using the "error.message" key and optionally adds the "error.stacktrace" Span tag with the stack trace from the provided throwable. See the "kamon.trace.include-error-stacktrace" setting for more information.

    Definition Classes
    LocalSpan
  11. def fail(throwable: Throwable): Span

    Permalink

    Marks the operation represented by this Span as failed and optionally adds the "error.stacktrace" Span tag with the stack trace from the provided throwable.

    Marks the operation represented by this Span as failed and optionally adds the "error.stacktrace" Span tag with the stack trace from the provided throwable. See the "kamon.trace.include-error-stacktrace" setting for more information.

    Definition Classes
    LocalSpan
  12. def fail(message: String): Span

    Permalink

    Marks the operation represented by this Span as failed and adds the provided message as a Span tag using the "error.message" key.

    Marks the operation represented by this Span as failed and adds the provided message as a Span tag using the "error.message" key.

    Definition Classes
    LocalSpan
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def finish(finishedAt: Instant): Unit

    Permalink

    Finishes this Span using the provided finish instant.

    Finishes this Span using the provided finish instant. Even though it is possible to call any of the methods that modify/write information on the Span, once it is finished no further changes are taken into account.

    Definition Classes
    LocalSpan
  15. def finish(): Unit

    Permalink

    Finishes this Span.

    Finishes this Span. Even though it is possible to call any of the methods that modify/write information on the Span, once it is finished no further changes are taken into account.

    Definition Classes
    LocalSpan
  16. def finishAfter(at: Duration): Unit

    Permalink

    Finishes this Span using the provided duration.

    Finishes this Span using the provided duration. Even though it is possible to call any of the methods that modify/write information on the Span, once it is finished no further changes are taken into account.

    Definition Classes
    LocalSpan
  17. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. val id: Identifier

    Permalink

    Uniquely identifies this Span within the Trace.

    Uniquely identifies this Span within the Trace.

    Definition Classes
    LocalSpan
  20. val isEmpty: Boolean

    Permalink

    Returns true if this Span is a placeholder because no Span information is available.

    Returns true if this Span is a placeholder because no Span information is available.

    Definition Classes
    LocalSpan
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. val isRemote: Boolean

    Permalink

    Returns true if this Span was initially created in another process and then transferred to this process.

    Returns true if this Span was initially created in another process and then transferred to this process.

    Definition Classes
    LocalSpan
  23. val kind: Kind

    Permalink

    Returns the kind of operation represented by this Span.

    Returns the kind of operation represented by this Span.

    Definition Classes
    LocalSpan
  24. def link(span: Span, kind: Link.Kind): Span

    Permalink

    Creates a link between this Span and the provided one.

    Creates a link between this Span and the provided one.

    Definition Classes
    LocalSpan
  25. def mark(key: String, at: Instant): Span

    Permalink

    Adds a new mark with the provided key and instant.

    Adds a new mark with the provided key and instant.

    Definition Classes
    LocalSpan
  26. def mark(key: String): Span

    Permalink

    Adds a new mark with the provided key using the current instant from Kamon's clock.

    Adds a new mark with the provided key using the current instant from Kamon's clock.

    Definition Classes
    LocalSpan
  27. def name(operationName: String): Span

    Permalink

    Changes the operation name on this Span.

    Changes the operation name on this Span. Even though it is possible (and sometimes necessary) to change the operation name in a Span, take into account that the operation name might be captured by child Spans when parent operation scoping is enabled and any updates done after the child spans read the operation name will not be reflected on the "parentOperation" tag.

    Definition Classes
    LocalSpan
  28. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def operationName(): String

    Permalink

    Returns the current operation name for this Span.

    Returns the current operation name for this Span.

    Definition Classes
    LocalSpanOperation
  32. val parentId: Identifier

    Permalink

    Identifier for the parent of this this Span, if any.

    Identifier for the parent of this this Span, if any. If a Span has no parent (e.g. it is the first Span in the trace) then an empty identifier is returned.

    Definition Classes
    LocalSpan
  33. val position: Position

    Permalink

    Returns the position of this Span in the trace to which it belongs.

    Returns the position of this Span in the trace to which it belongs.

    Definition Classes
    LocalSpan
  34. def start(at: Instant): Delayed

    Permalink

    Signals that the operation represented by this Span started processing at the provided instant.

    Signals that the operation represented by this Span started processing at the provided instant.

    Definition Classes
    LocalDelayed
  35. def start(): Delayed

    Permalink

    Signals that the operation represented by this Span started processing.

    Signals that the operation represented by this Span started processing.

    Definition Classes
    LocalDelayed
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def tag(tags: TagSet): Span

    Permalink

    Adds all key/value pairs in the provided tags to the Span tags.

    Adds all key/value pairs in the provided tags to the Span tags. If a tag with the provided key was already present then its value will be overwritten.

    Definition Classes
    LocalSpan
  38. def tag(key: String, value: Boolean): Span

    Permalink

    Adds the provided key/value pair to the Span tags.

    Adds the provided key/value pair to the Span tags. If a tag with the provided key was already present then its value will be overwritten.

    Definition Classes
    LocalSpan
  39. def tag(key: String, value: Long): Span

    Permalink

    Adds the provided key/value pair to the Span tags.

    Adds the provided key/value pair to the Span tags. If a tag with the provided key was already present then its value will be overwritten.

    Definition Classes
    LocalSpan
  40. def tag(key: String, value: String): Span

    Permalink

    Adds the provided key/value pair to the Span tags.

    Adds the provided key/value pair to the Span tags. If a tag with the provided key was already present then its value will be overwritten.

    Definition Classes
    LocalSpan
  41. def tagMetrics(tags: TagSet): Span

    Permalink

    Adds all key/value pairs in the provided tags to the Span metric tags.

    Adds all key/value pairs in the provided tags to the Span metric tags. If a tag with the provided key was already present then its value will be overwritten.

    Definition Classes
    LocalSpan
  42. def tagMetrics(key: String, value: Boolean): Span

    Permalink

    Adds the provided key/value pair to the Span metric tags.

    Adds the provided key/value pair to the Span metric tags. If a tag with the provided key was already present then its value will be overwritten.

    Definition Classes
    LocalSpan
  43. def tagMetrics(key: String, value: Long): Span

    Permalink

    Adds the provided key/value pair to the Span metric tags.

    Adds the provided key/value pair to the Span metric tags. If a tag with the provided key was already present then its value will be overwritten.

    Definition Classes
    LocalSpan
  44. def tagMetrics(key: String, value: String): Span

    Permalink

    Adds the provided key/value pair to the Span metric tags.

    Adds the provided key/value pair to the Span metric tags. If a tag with the provided key was already present then its value will be overwritten.

    Definition Classes
    LocalSpan
  45. def takeSamplingDecision(): Span

    Permalink

    Makes the Span decide for a Sample or DoNotSample decision for the Trace it belongs to, in case the current that the current Sampling Decision is Unknown.

    Makes the Span decide for a Sample or DoNotSample decision for the Trace it belongs to, in case the current that the current Sampling Decision is Unknown. If the Sampling Decision is already taken, calling this method will have no effect on the Span.

    Definition Classes
    LocalSpan
  46. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  47. val trace: Trace

    Permalink

    Trace to which this Span belongs.

    Trace to which this Span belongs.

    Definition Classes
    LocalSpan
  48. def trackDelayedSpanMetrics(): Delayed

    Permalink

    Enables tracking of the span.elapsed-time and span.wait-time metrics for this Span.

    Enables tracking of the span.elapsed-time and span.wait-time metrics for this Span. Note that these metrics will not be recorded if metrics tracking has been disabled on the Span.

    Definition Classes
    LocalDelayed
  49. def trackMetrics(): Span

    Permalink

    Enables tracking of metrics for this Span.

    Enables tracking of metrics for this Span. For a plain Span, this means that the span.processing-time metric will be tracked and for a Delayed Span, the span.elapsed-time and span.wait-time metrics will be tracked as well.

    Definition Classes
    LocalSpan
  50. final def wait(): Unit

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

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

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

Inherited from Delayed

Inherited from Span

Inherited from Operation

Inherited from AnyRef

Inherited from Any

Ungrouped