Fixed missing options for benchmarks

This commit is contained in:
Marcin Grzejszczak
2021-04-06 11:44:25 +02:00
parent 00b4771a74
commit 3709ed80e7
2 changed files with 5 additions and 2 deletions

View File

@@ -47,6 +47,10 @@ public class Pair {
return new Pair("spring.sleuth.reactor.instrumentation-type", SleuthReactorProperties.InstrumentationType.DECORATE_ON_EACH.name());
}
public static Pair decorateQueues() {
return new Pair("spring.sleuth.reactor.instrumentation-type", SleuthReactorProperties.InstrumentationType.DECORATE_QUEUES.name());
}
public static Pair manual() {
return new Pair("spring.sleuth.reactor.instrumentation-type", SleuthReactorProperties.InstrumentationType.MANUAL.name());
}

View File

@@ -163,8 +163,7 @@ public class MicroBenchmarkStreamTests {
sleuthSimpleOnLast(function("simple"), Pair.onLast()),
sleuthSimpleWithAroundOnQueues(function("simple_function_with_around")),
noSleuthReactiveSimple(function("reactive_simple"), Pair.noSleuth()),
// TODO: CHECK WHY IT'S FAILING
// sleuthReactiveSimpleOnQueues(function("DECORATE_QUEUES")),
sleuthReactiveSimpleOnQueues(function("DECORATE_QUEUES"), Pair.decorateQueues(), integrationEnabled()),
sleuthReactiveSimpleOnEach(function("DECORATE_ON_EACH"), Pair.onEach(), integrationEnabled()),
sleuthReactiveSimpleManual(function("reactive_simple_manual"), Pair.manual()),
sleuthReactiveSimpleNoFunctionInstrumentationManual(function("reactive_simple_manual"), Pair.manual(), integrationEnabled(), functionDisabled());