From 393f43ab6e355beb72b202ae6179aec3d8e272ac Mon Sep 17 00:00:00 2001 From: Chris Kleinknecht Date: Fri, 28 Feb 2020 11:50:33 -0800 Subject: [PATCH] Use simple processor in http examples --- examples/http/server.py | 4 ++-- examples/http/tracer_client.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/http/server.py b/examples/http/server.py index 50bc566b77c..0096b795434 100755 --- a/examples/http/server.py +++ b/examples/http/server.py @@ -24,8 +24,8 @@ from opentelemetry.ext.wsgi import OpenTelemetryMiddleware from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import ( - BatchExportSpanProcessor, ConsoleSpanExporter, + SimpleExportSpanProcessor, ) if os.getenv("EXPORTER") == "jaeger": @@ -45,7 +45,7 @@ tracer = trace.get_tracer(__name__) # SpanExporter receives the spans and send them to the target location. -span_processor = BatchExportSpanProcessor(exporter) +span_processor = SimpleExportSpanProcessor(exporter) trace.tracer_provider().add_span_processor(span_processor) # Integrations are the glue that binds the OpenTelemetry API and the diff --git a/examples/http/tracer_client.py b/examples/http/tracer_client.py index 6fd0a726a42..68a504b4d38 100755 --- a/examples/http/tracer_client.py +++ b/examples/http/tracer_client.py @@ -15,15 +15,14 @@ # limitations under the License. import os - import requests from opentelemetry import trace from opentelemetry.ext import http_requests from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import ( - BatchExportSpanProcessor, ConsoleSpanExporter, + SimpleExportSpanProcessor, ) if os.getenv("EXPORTER") == "jaeger": @@ -43,7 +42,7 @@ tracer_provider = trace.tracer_provider() # SpanExporter receives the spans and send them to the target location. -span_processor = BatchExportSpanProcessor(exporter) +span_processor = SimpleExportSpanProcessor(exporter) tracer_provider.add_span_processor(span_processor) # Integrations are the glue that binds the OpenTelemetry API and the