Skip to content

Commit 27ec252

Browse files
committed
add meters/spans
1 parent 29cacaf commit 27ec252

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/test/kotlin/integration/CLIIntegrationTest.kt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import io.vertx.core.json.jackson.DatabindCodec
77
import spp.cli.Main
88
import spp.protocol.instrument.breakpoint.LiveBreakpoint
99
import spp.protocol.instrument.log.LiveLog
10+
import spp.protocol.instrument.meter.LiveMeter
11+
import spp.protocol.instrument.span.LiveSpan
1012
import java.io.OutputStream
1113
import java.io.PrintStream
1214
import kotlin.reflect.KClass
@@ -44,10 +46,14 @@ abstract class CLIIntegrationTest {
4446
val list = mutableListOf<T>()
4547
for (it in value.withIndex()) {
4648
val v = value.getJsonObject(it.index)
47-
if (v.getString("type") == "LOG") {
48-
list.add(v.mapTo(LiveLog::class.java) as T)
49-
} else if (v.getString("type") == "BREAKPOINT") {
49+
if (v.getString("type") == "BREAKPOINT") {
5050
list.add(v.mapTo(LiveBreakpoint::class.java) as T)
51+
} else if (v.getString("type") == "LOG") {
52+
list.add(v.mapTo(LiveLog::class.java) as T)
53+
} else if (v.getString("type") == "METER") {
54+
list.add(v.mapTo(LiveMeter::class.java) as T)
55+
} else if (v.getString("type") == "SPAN") {
56+
list.add(v.mapTo(LiveSpan::class.java) as T)
5157
} else {
5258
list.add(v.mapTo(clazz.java) as T)
5359
}

0 commit comments

Comments
 (0)