SpanRef
An extended Span interface that provides access to internal state.
Since the span's internal state can be mutated during the lifetime, some operations are effectful.
Type parameters
- F
-
the higher-kinded type of a polymorphic effect
Attributes
- Source
- SpanRef.scala
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
Returns the duration of the span.
Returns the duration of the span.
If still active then returns Clock[F].realTime - start
time.
Attributes
- Source
- SpanRef.scala
Returns the attribute value for the given key
.
Returns the attribute value for the given key
. Returns None
if the key is absent in the storage.
Attributes
- Note
-
the attribute values can be changed during the lifetime of the span by using Span.addAttribute, so this value cannot be cached.
- Source
- SpanRef.scala
Indicates whether the span has already been ended.
Returns the kind of the span.
Returns the name of the span.
Returns the name of the span.
Attributes
- Note
-
the name of the span can be changed during the lifetime of the span by using Span.updateName, so this value cannot be cached.
- Source
- SpanRef.scala
Returns the parent's span context of the span.
Returns the instrumentation scope specified when creating the tracer which produced this span.
Returns the instrumentation scope specified when creating the tracer which produced this span.
Attributes
- Source
- SpanRef.scala
Returns an immutable instance of the SpanData, for use in export.
Inherited methods
Attributes
- Inherited from:
- Backend
- Source
- Span.scala
Attributes
- Inherited from:
- Backend
- Source
- Span.scala
Attributes
- Inherited from:
- Backend
- Source
- Span.scala
Attributes
- Inherited from:
- Backend
- Source
- Span.scala
Attributes
- Inherited from:
- Backend
- Source
- Span.scala
Modify the context F
using an implicit KindTransformer from F
to G
.
Modify the context F
using an implicit KindTransformer from F
to G
.
Attributes
- Inherited from:
- Backend
- Source
- Span.scala
Modify the context F
using the transformation f
.
Modify the context F
using the transformation f
.
Attributes
- Inherited from:
- Backend
- Source
- Span.scala
Attributes
- Inherited from:
- Backend
- Source
- Span.scala
Attributes
- Inherited from:
- Backend
- Source
- Span.scala
Attributes
- Inherited from:
- Backend
- Source
- Span.scala
Attributes
- Inherited from:
- Backend
- Source
- Span.scala
Attributes
- Inherited from:
- Backend
- Source
- Span.scala