Skip to content

Commit

Permalink
Decrease DEFAULT_SCHEDULE_DELAY time for JaegerTracerBuilder
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Aleksandrov <dmitry.aleksandrov@oracle.com>
  • Loading branch information
dalexandrov committed Oct 5, 2023
1 parent 5f90f74 commit 4af304a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public class JaegerTracerBuilder implements TracerBuilder<JaegerTracerBuilder> {
static final String DEFAULT_HTTP_HOST = "localhost";
static final int DEFAULT_HTTP_PORT = 14250;

static final long DEFAULT_SCHEDULE_DELAY = 30_000;
static final long DEFAULT_SCHEDULE_DELAY = 5_000;
static final int DEFAULT_MAX_QUEUE_SIZE = 2048;
static final int DEFAULT_MAX_EXPORT_BATCH_SIZE = 512;
private final Map<String, String> tags = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void testConfigDefaults() {
assertThat("Span Processor type", jBuilder.spanProcessorType(), is(JaegerTracerBuilder.SpanProcessorType.BATCH));
assertThat("Sampler param", jBuilder.samplerParam(), is(Integer.valueOf(1)));
assertThat("Exporter timeout", jBuilder.exporterTimeout(), is(Duration.ofSeconds(10)));
assertThat("Schedule delay", jBuilder.scheduleDelay(), is(Duration.ofSeconds(30)));
assertThat("Schedule delay", jBuilder.scheduleDelay(), is(Duration.ofSeconds(5)));
assertThat("Max Queue Size", jBuilder.maxQueueSize(), is(2048));
assertThat("Max Export Batch Size", jBuilder.maxExportBatchSize(), is(512));
}
Expand Down

0 comments on commit 4af304a

Please sign in to comment.