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
Members list
In this article