Packages

object Tracing

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tracing
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait Service extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addEvent(name: String): URIO[Tracing, Span]

    Adds an event to the current span

  5. def addEventWithAttributes(name: String, attributes: Attributes): URIO[Tracing, Span]

    Adds an event with attributes to the current span.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getCurrentSpanContext: URIO[Tracing, SpanContext]

    Gets the current SpanContext

  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def inject[C](propagator: TextMapPropagator, carrier: C, setter: TextMapSetter[C]): URIO[Tracing, Unit]

    Injects the current span into carrier C

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def live: URLayer[Clock with Has[Tracer], Tracing]
  17. def managed(tracer: Tracer): URManaged[Clock, Service]
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. 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.

  22. 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.

  23. 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

  24. 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.

  25. def setAttribute(name: String, value: String): URIO[Tracing, Span]

    Sets an attribute of the current span.

  26. def setAttribute(name: String, value: Long): URIO[Tracing, Span]

    Sets an attribute of the current span.

  27. def setAttribute(name: String, value: Double): URIO[Tracing, Span]

    Sets an attribute of the current span.

  28. def setAttribute(name: String, value: Boolean): URIO[Tracing, Span]

    Sets an attribute of the current span.

  29. 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.

  30. 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.

  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped