org.typelevel.otel4s.sdk.trace.data.EventData
See theEventData companion trait
object EventData
Attributes
- Companion
- trait
- Source
- EventData.scala
- Graph
-
- Supertypes
- Self type
-
EventData.type
Members list
Type members
Inherited types
The names of the product elements
The name of the type
Value members
Concrete methods
Creates EventData with the given arguments.
Creates EventData with the given arguments.
Value parameters
- attributes
-
the attributes to associate with the event
- name
-
the name of the event
- timestamp
-
the timestamp of the event
Attributes
- Source
- EventData.scala
def fromException(timestamp: FiniteDuration, exception: Throwable, attributes: Attributes, escaped: Boolean): EventData
Creates EventData from the given exception.
Creates EventData from the given exception.
The name of the even will be exception
.
Exception details (name, message, and stacktrace) will be added to the attributes.
Value parameters
- attributes
-
the attributes to associate with the event
- escaped
-
should be set to true if the exception is recorded at a point where it is known that the exception is escaping the scope of the span
- exception
-
the exception to associate with the event
- timestamp
-
the timestamp of the event
Attributes
- Source
- EventData.scala
Implicits
In this article