object Tracing
- Alphabetic
- By Inheritance
- Tracing
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- def addEvent(name: String): URIO[Tracing, Span]
Adds an event to the current span
- def addEventWithAttributes(name: String, attributes: Attributes): URIO[Tracing, Span]
Adds an event with attributes to the current span.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getCurrentSpanContext: URIO[Tracing, SpanContext]
Gets the current SpanContext
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def inject[C](propagator: TextMapPropagator, carrier: C, setter: TextMapSetter[C]): URIO[Tracing, Unit]
Injects the current span into carrier
C
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def live: URLayer[Clock with Has[Tracer], Tracing]
- def managed(tracer: Tracer): URManaged[Clock, Service]
- 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 root[R, E, A](spanName: String, spanKind: SpanKind, toErrorStatus: PartialFunction[E, StatusCode])(effect: ZIO[R, E, A]): ZIO[R with Tracing, E, A]
Sets the current span to be the new root span with name 'spanName' Ends the span when the effect finishes.
- def scopedEffect[R, A](effect: => A): ZIO[Tracing, Throwable, A]
Introduces a thread-local scope during the execution allowing for non-zio context propagation.
Introduces a thread-local scope during the execution allowing for non-zio context propagation.
Closes the scope when the effect finishes.
- def scopedEffectFromFuture[R, A](make: (ExecutionContext) => Future[A]): ZIO[Tracing, Throwable, A]
Introduces a thread-local scope from the currently active zio span allowing for non-zio context propagation.
Introduces a thread-local scope from the currently active zio span allowing for non-zio context propagation. This scope will only be active during Future creation, so another mechanism must be used to ensure that the scope is passed into the Future callbacks.
The java auto instrumentation package provides such a mechanism out of the box, so one is not provided as a part of this method.
CLoses the scope when the effect finishes
- def scopedEffectTotal[R, A](effect: => A): ZIO[Tracing, Nothing, A]
Introduces a thread-local scope during the execution allowing for non-zio context propagation.
Introduces a thread-local scope during the execution allowing for non-zio context propagation.
Closes the scope when the effect finishes.
- def setAttribute(name: String, value: String): URIO[Tracing, Span]
Sets an attribute of the current span.
- def setAttribute(name: String, value: Long): URIO[Tracing, Span]
Sets an attribute of the current span.
- def setAttribute(name: String, value: Double): URIO[Tracing, Span]
Sets an attribute of the current span.
- def setAttribute(name: String, value: Boolean): URIO[Tracing, Span]
Sets an attribute of the current span.
- def span[R, E, A](spanName: String, spanKind: SpanKind, toErrorStatus: PartialFunction[E, StatusCode])(effect: ZIO[R, E, A]): ZIO[R with Tracing, E, A]
Sets the current span to be the child of the current span with name 'spanName' Ends the span when the effect finishes.
- def spanFrom[C, R, E, A](propagator: TextMapPropagator, carrier: C, getter: TextMapGetter[C], spanName: String, spanKind: SpanKind, toErrorStatus: PartialFunction[E, StatusCode])(effect: ZIO[R, E, A]): ZIO[R with Tracing, E, A]
Extracts the span from carrier
C
and set its child span with name 'spanName' as the current span.Extracts the span from carrier
C
and set its child span with name 'spanName' as the current span. Ends the span when the effect finishes. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()