From f54bdd86baa7269adf43d8f040db1635778aa013 Mon Sep 17 00:00:00 2001 From: Pablo Collins Date: Wed, 18 Oct 2023 15:41:20 -0400 Subject: [PATCH] tweak default values --- .../opentelemetry/sdk/trace/export/experimental/processor.py | 4 ++-- opentelemetry-sdk/tests/trace/export/test_experimental.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/trace/export/experimental/processor.py b/opentelemetry-sdk/src/opentelemetry/sdk/trace/export/experimental/processor.py index 89becdbed59..6bf5ab56c12 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/trace/export/experimental/processor.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/trace/export/experimental/processor.py @@ -16,8 +16,8 @@ class BatchSpanProcessor2(SpanProcessor): def __init__( self, exporter: SpanExporter, - max_batch_size: int = 1024, - interval_sec: int = 4, + max_batch_size: int = 512, + interval_sec: int = 5, timer: typing.Optional[TimerABC] = None, ): self._exporter = exporter diff --git a/opentelemetry-sdk/tests/trace/export/test_experimental.py b/opentelemetry-sdk/tests/trace/export/test_experimental.py index 9124c17ba5f..5e6db6fd81b 100644 --- a/opentelemetry-sdk/tests/trace/export/test_experimental.py +++ b/opentelemetry-sdk/tests/trace/export/test_experimental.py @@ -6,7 +6,7 @@ import util from opentelemetry.sdk.trace import ReadableSpan -from opentelemetry.sdk.trace.export import SpanExporter, SpanExportResult +from opentelemetry.sdk.trace.export import SpanExporter, SpanExportResult, BatchSpanProcessor from opentelemetry.sdk.trace.export.experimental.client import RetryingGrpcClient, FakeGrpcClient from opentelemetry.sdk.trace.export.experimental.exporter import OTLPSpanExporter2 from opentelemetry.sdk.trace.export.experimental.processor import BatchSpanProcessor2