Skip to content

Commit

Permalink
fixes broken benchmarks
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <[email protected]>
  • Loading branch information
Adrian Cole committed Dec 6, 2023
1 parent 68c4949 commit 3e6b905
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ public class MetricsBenchmarks {
static final int MEDIUM_SPAN = 1000;
static final int SHORT_SPAN = 500;
private MeterRegistry registry = new PrometheusMeterRegistry(PrometheusConfig.DEFAULT);
private InMemoryCollectorMetrics inMemoryCollectorMetrics = new InMemoryCollectorMetrics();
private MicrometerCollectorMetrics micrometerCollectorMetrics = new MicrometerCollectorMetrics(registry);
private InMemoryCollectorMetrics inMemoryCollectorMetrics = new InMemoryCollectorMetrics()
.forTransport("jmh");
private MicrometerCollectorMetrics micrometerCollectorMetrics = new MicrometerCollectorMetrics(registry)
.forTransport("jmh");

@Benchmark
public int incrementBytes_longSpans_inMemory() {
Expand Down

0 comments on commit 3e6b905

Please sign in to comment.