Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Update flask_example.py #8

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import (
ConsoleSpanExporter,
SimpleExportSpanProcessor,
SimpleSpanProcessor,
)

# The preferred tracer implementation must be set, as the opentelemetry-api
Expand All @@ -36,7 +36,7 @@
opentelemetry.instrumentation.requests.RequestsInstrumentor().instrument()

trace.get_tracer_provider().add_span_processor(
SimpleExportSpanProcessor(ConsoleSpanExporter())
SimpleSpanProcessor(ConsoleSpanExporter())
)

app = flask.Flask(__name__)
Expand Down