SpanData

zio.blocks.telemetry.SpanData
final case class SpanData(name: String, kind: SpanKind, spanContext: SpanContext, parentSpanContext: SpanContext, startTimeNanos: Long, endTimeNanos: Long, attributes: Attributes, events: List[SpanEvent], links: List[SpanLink], status: SpanStatus, resource: Resource, instrumentationScope: InstrumentationScope)

Immutable snapshot of span data for export.

Created by calling toSpanData on a Span. Contains all information collected during the span's lifetime.

Value parameters

attributes

attributes set on the span

endTimeNanos

epoch nanoseconds when the span ended

events

events recorded during the span

instrumentationScope

the instrumentation scope that created this span

kind

the span kind

links

links to other spans

name

the span name

parentSpanContext

the parent span's context (invalid if root span)

resource

the resource producing this span

spanContext

the span's own context

startTimeNanos

epoch nanoseconds when the span started

status

the span's completion status

Attributes

Source
SpanData.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala