Skip to content

Commit 3f96ad7

Browse files
committed
live span wip
1 parent 780d117 commit 3f96ad7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package spp.protocol.instrument.span.event
2+
3+
import kotlinx.datetime.Instant
4+
import kotlinx.serialization.Serializable
5+
import spp.protocol.Serializers
6+
import spp.protocol.artifact.exception.LiveStackTrace
7+
import spp.protocol.instrument.LiveInstrumentEventType
8+
import spp.protocol.instrument.TrackedLiveEvent
9+
10+
/**
11+
* todo: description.
12+
*
13+
* @author [Brandon Fergerson](mailto:bfergerson@apache.org)
14+
*/
15+
@Serializable
16+
data class LiveSpanRemoved(
17+
val spanId: String,
18+
@Serializable(with = Serializers.InstantKSerializer::class)
19+
override val occurredAt: Instant,
20+
val cause: LiveStackTrace? = null
21+
) : TrackedLiveEvent {
22+
val eventType: LiveInstrumentEventType = LiveInstrumentEventType.SPAN_REMOVED
23+
}

0 commit comments

Comments
 (0)