trait Tracing extends AnyRef
Exposes the Tracing APIs using a built-in, globally shared tracer.
- Self Type
- Tracing with Configuration with Utilities with ContextStorage
- Alphabetic
- By Inheritance
- Tracing
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
clientSpanBuilder(operationName: String, component: String): SpanBuilder
Creates a new SpanBuilder for a Client Span and applies the provided component name as a metric tag.
Creates a new SpanBuilder for a Client Span and applies the provided component name as a metric tag. It is recommended that all Spans include a "component" metric tag that indicates what library or library section is generating the Span.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
consumerSpanBuilder(operationName: String, component: String): SpanBuilder
Creates a new SpanBuilder for a Consumer Span and applies the provided component name as a metric tag.
Creates a new SpanBuilder for a Consumer Span and applies the provided component name as a metric tag. It is recommended that all Spans include a "component" metric tag that indicates what library or library section is generating the Span.
-
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()
-
def
identifierScheme: Scheme
Returns the Identifier Scheme currently used by the tracer.
-
def
internalSpanBuilder(operationName: String, component: String): SpanBuilder
Creates a new SpanBuilder for an Internal Span and applies the provided component name as a metric tag.
Creates a new SpanBuilder for an Internal Span and applies the provided component name as a metric tag. It is recommended that all Spans include a "component" metric tag that indicates what library or library section is generating the Span.
-
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()
-
def
producerSpanBuilder(operationName: String, component: String): SpanBuilder
Creates a new SpanBuilder for a Producer Span and applies the provided component name as a metric tag.
Creates a new SpanBuilder for a Producer Span and applies the provided component name as a metric tag. It is recommended that all Spans include a "component" metric tag that indicates what library or library section is generating the Span.
-
def
serverSpanBuilder(operationName: String, component: String): SpanBuilder
Creates a new SpanBuilder for a Server Span and applies the provided component name as a metric tag.
Creates a new SpanBuilder for a Server Span and applies the provided component name as a metric tag. It is recommended that all Spans include a "component" metric tag that indicates what library or library section is generating the Span.
-
def
span[A](operationName: String, component: String)(f: ⇒ A): A
Creates an Internal Span that finishes automatically when the provided function finishes execution.
Creates an Internal Span that finishes automatically when the provided function finishes execution. If the provided function returns a scala.concurrent.Future or java.util.concurrent.CompletionStage implementation then the Span will be finished with the Future/CompletionState completes.
You can get access to the created Span within the provided function using Kamon.currentSpan. For example, if you wanted to add a tag to a Span created with this function you could do it as follows:
span("fetchUserDetails") { Kamon.currentSpan.tag("user.id", userId)
// Your business logic... }
If you need more customization options for the Span or complete control over Context propagation and Span lifecycle then create a SpanBuilder instead.
-
def
span[A](operationName: String)(f: ⇒ A): A
Creates an Internal Span that finishes automatically when the provided function finishes execution.
Creates an Internal Span that finishes automatically when the provided function finishes execution. If the provided function returns a scala.concurrent.Future or java.util.concurrent.CompletionStage implementation then the Span will be finished with the Future/CompletionState completes.
You can get access to the created Span within the provided function using Kamon.currentSpan. For example, if you wanted to add a tag to a Span created with this function you could do it as follows:
span("fetchUserDetails") { Kamon.currentSpan.tag("user.id", userId)
// Your business logic... }
If you need more customization options for the Span or complete control over Context propagation and Span lifecycle then create a SpanBuilder instead.
-
def
spanBuilder(operationName: String): SpanBuilder
Creates a new raw SpanBuilder instance using the provided operation name.
- def stopTracer(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tracer(): Tracer
The Tracer instance is only exposed to other Kamon components that need it like the Module Registry and Status
The Tracer instance is only exposed to other Kamon components that need it like the Module Registry and Status
- Attributes
- protected
-
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()