OpenTelemetryZioOps

final implicit
class OpenTelemetryZioOps[-R, +E, +A](val effect: ZIO[R, E, A]) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def addEvent(name: String): ZIO[Tracing & Clock & R, E, A]
def addEventWithAttributes(name: String, attributes: Attributes): ZIO[Tracing & R, E, A]
def inSpan(span: Span, spanName: String, spanKind: SpanKind, toErrorStatus: PartialFunction[E, StatusCode]): ZIO[R & Tracing, E, A]

Mark this effect as the child of an externally provided span. zio-opentelemetry will mark the span as being the child of the external one.

Mark this effect as the child of an externally provided span. zio-opentelemetry will mark the span as being the child of the external one.

This is designed for use-cases where you are incrementally introducing zio & zio-telemetry in a project that already makes use of instrumentation, and you need to interoperate with futures-based code.

The caller is solely responsible for managing the external span, including calling Span.end

def root(spanName: String, spanKind: SpanKind, toErrorStatus: PartialFunction[E, StatusCode]): ZIO[R & Tracing, E, A]
def setAttribute(name: String, value: Boolean): ZIO[Tracing & R, E, A]
def setAttribute(name: String, value: Double): ZIO[Tracing & R, E, A]
def setAttribute(name: String, value: Long): ZIO[Tracing & R, E, A]
def setAttribute(name: String, value: String): ZIO[Tracing & R, E, A]
def setAttribute[T](key: AttributeKey[T], value: T): ZIO[Tracing & R, E, A]
def setAttribute(name: String, values: Seq[String]): ZIO[Tracing & R, E, A]
def setAttribute(name: String, values: Seq[Boolean])(implicit i1: DummyImplicit): ZIO[Tracing & R, E, A]
def setAttribute(name: String, values: Seq[Long])(implicit i1: DummyImplicit, i2: DummyImplicit): ZIO[Tracing & R, E, A]
def setAttribute(name: String, values: Seq[Double])(implicit i1: DummyImplicit, i2: DummyImplicit, i3: DummyImplicit): ZIO[Tracing & R, E, A]
def setBaggage(name: String, value: String): ZIO[Tracing & R, E, A]
def span(spanName: String, spanKind: SpanKind, toErrorStatus: PartialFunction[E, StatusCode]): ZIO[R & Tracing, E, A]
def spanFrom[C](propagator: TextMapPropagator, carrier: C, getter: TextMapGetter[C], spanName: String, spanKind: SpanKind, toErrorStatus: PartialFunction[E, StatusCode]): ZIO[R & Tracing, E, A]

Concrete fields

val effect: ZIO[R, E, A]