Skip to content

Commit

Permalink
Bugfix: Fixing example app test (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
toumorokoshi committed Mar 16, 2020
1 parent 8d951ee commit b82dbe0
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
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(
Expand All @@ -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)

0 comments on commit b82dbe0

Please sign in to comment.