Skip to content

Commit 22f8415

Browse files
authored
Update http_flask.py (Azure#31951)
1 parent de7df94 commit 22f8415

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • sdk/monitor/azure-monitor-opentelemetry/samples/tracing

sdk/monitor/azure-monitor-opentelemetry/samples/tracing/http_flask.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
# Licensed under the MIT License. See License in the project root for
44
# license information.
55
# --------------------------------------------------------------------------
6-
import flask
76
from azure.monitor.opentelemetry import configure_azure_monitor
87

98
# Configure Azure monitor collection telemetry pipeline
109
configure_azure_monitor()
1110

11+
# Import Flask after running configure_azure_monitor()
12+
import flask
13+
1214
app = flask.Flask(__name__)
1315

1416

0 commit comments

Comments
 (0)