org.typelevel.otel4s.sdk.trace.data.SpanData
See theSpanData companion trait
object SpanData
Attributes
- Companion
- trait
- Source
- SpanData.scala
- Graph
-
- Supertypes
- Self type
-
SpanData.type
Members list
Type members
Inherited types
The names of the product elements
The name of the type
Value members
Concrete methods
def apply(name: String, spanContext: SpanContext, parentSpanContext: Option[SpanContext], kind: SpanKind, startTimestamp: FiniteDuration, endTimestamp: Option[FiniteDuration], status: StatusData, attributes: Attributes, events: Vector[EventData], links: Vector[LinkData], instrumentationScope: InstrumentationScope, resource: TelemetryResource): SpanData
Creates SpanData with the given arguments.
Creates SpanData with the given arguments.
Value parameters
- attributes
-
the attributes associated with the span
- endTimestamp
-
the end timestamp of the span. Use
None
is the span hasn't ended yet - events
-
the events associated with the span
- instrumentationScope
-
the instrumentation scope associated with the span
- kind
-
the kind of the span
- links
-
the links associated with the span
- name
-
the name of the span
- parentSpanContext
-
an optional parent span context. Use
None
if there is no parent span context - resource
-
the resource associated with the span
- spanContext
-
the span context associated with the span
- startTimestamp
-
the start timestamp of the span
- status
-
the status data of the span
Attributes
- Source
- SpanData.scala
Implicits
In this article