Span

zio.blocks.telemetry.Span
See theSpan companion object
trait Span

A mutable, thread-safe span representing a unit of work in a trace.

Spans are created via SpanBuilder and track attributes, events, and status throughout their lifetime. Once end() is called, the span stops recording and all mutating methods become no-ops.

Attributes

Companion
object
Source
Span.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object NoOp

Members list

Value members

Abstract methods

def addEvent(name: String): Unit

Attributes

Source
Span.scala
def addEvent(name: String, attributes: Attributes): Unit

Attributes

Source
Span.scala
def addEvent(name: String, timestamp: Long, attributes: Attributes): Unit

Attributes

Source
Span.scala
def end(): Unit

Attributes

Source
Span.scala
def end(endTimeNanos: Long): Unit

Attributes

Source
Span.scala
def isRecording: Boolean

Attributes

Source
Span.scala
def kind: SpanKind

Attributes

Source
Span.scala
def name: String

Attributes

Source
Span.scala
def setAttribute[A](key: AttributeKey[A], value: A): Unit

Attributes

Source
Span.scala
def setAttribute(key: String, value: String): Unit

Attributes

Source
Span.scala
def setAttribute(key: String, value: Long): Unit

Attributes

Source
Span.scala
def setAttribute(key: String, value: Double): Unit

Attributes

Source
Span.scala
def setAttribute(key: String, value: Boolean): Unit

Attributes

Source
Span.scala
def setStatus(status: SpanStatus): Unit

Attributes

Source
Span.scala

Attributes

Source
Span.scala

Attributes

Source
Span.scala