Skip to content

Commit 7e8ffe2

Browse files
authored
Actually configure app insights correctly for web api (Azure-Samples#597)
Although we were seeing the app, we were not seeing the requests. This change fixes that issue. Required by Azure-Samples#585
1 parent 5e38cf5 commit 7e8ffe2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

code/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from azure.monitor.opentelemetry import configure_azure_monitor
2-
from create_app import create_app
32

43
configure_azure_monitor()
4+
5+
from create_app import create_app # noqa: E402
6+
57
app = create_app()
68

79
if __name__ == "__main__":

0 commit comments

Comments
 (0)