Bugfix: Fixing example app test
@@ -23,8 +23,10 @@ import opentelemetry.ext.http_requests
from opentelemetry import trace
from opentelemetry.ext.flask import instrument_app
from opentelemetry.sdk.trace import TracerProvider
-from opentelemetry.sdk.trace.export import ConsoleSpanExporter
-from opentelemetry.sdk.trace.export import SimpleExportSpanProcessor
+from opentelemetry.sdk.trace.export import (
+ ConsoleSpanExporter,
+ SimpleExportSpanProcessor,
+)
trace.set_tracer_provider(TracerProvider())
trace.get_tracer_provider().add_span_processor(
@@ -42,6 +44,3 @@ def hello():
with tracer.start_as_current_span("example-request"):
requests.get("http://www.example.com")
return "hello"
-
-
-app.run(debug=True)
