Skip to content

Commit cee2697

Browse files
committed
span work
1 parent 72d48b6 commit cee2697

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/commonMain/kotlin/spp.protocol/instrument/span/LiveSpan.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ data class LiveSpan(
2323
override val applyImmediately: Boolean = false,
2424
override val applied: Boolean = false,
2525
override val pending: Boolean = false,
26-
override val throttle: InstrumentThrottle = InstrumentThrottle.DEFAULT,
26+
override val throttle: InstrumentThrottle? = null,
2727
override val meta: Map<String, @Contextual Any> = emptyMap()
2828
) : LiveInstrument() {
2929
override val type: LiveInstrumentType = LiveInstrumentType.SPAN

src/jvmMain/kotlin/spp/protocol/ProtocolMarshaller.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ object ProtocolMarshaller {
4242
DatabindCodec.mapper().registerModule(KotlinModule())
4343
DatabindCodec.mapper().enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING)
4444
DatabindCodec.mapper().enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING)
45+
DatabindCodec.mapper().enable(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL)
4546
} catch (ignore: Throwable) {
4647
}
4748
}

0 commit comments

Comments
 (0)