diff --git a/src/core/trulens/experimental/otel_tracing/core/init.py b/src/core/trulens/experimental/otel_tracing/core/init.py index 769812433..aa6f0f67e 100644 --- a/src/core/trulens/experimental/otel_tracing/core/init.py +++ b/src/core/trulens/experimental/otel_tracing/core/init.py @@ -3,7 +3,6 @@ from opentelemetry import trace from opentelemetry.sdk.resources import Resource from opentelemetry.sdk.trace import TracerProvider -from opentelemetry.sdk.trace.export import BatchSpanProcessor from opentelemetry.sdk.trace.export import ConsoleSpanExporter from opentelemetry.sdk.trace.export import SimpleSpanProcessor from trulens.core.session import TruSession @@ -51,5 +50,5 @@ def init(session: TruSession, debug: bool = False): # Add the TruLens database exporter db_exporter = TruLensDBSpanExporter(session.connector) - db_processor = BatchSpanProcessor(db_exporter) + db_processor = SimpleSpanProcessor(db_exporter) provider.add_span_processor(db_processor)