@@ -7,6 +7,8 @@ import io.vertx.core.json.jackson.DatabindCodec
77import spp.cli.Main
88import spp.protocol.instrument.breakpoint.LiveBreakpoint
99import spp.protocol.instrument.log.LiveLog
10+ import spp.protocol.instrument.meter.LiveMeter
11+ import spp.protocol.instrument.span.LiveSpan
1012import java.io.OutputStream
1113import java.io.PrintStream
1214import 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