Skip to content

Commit a467636

Browse files
committed
Update logging
1 parent 2a10d6d commit a467636

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

code/function/fastapp/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
from opencensus.extension.azure.functions import OpenCensusExtension
66
from opencensus.trace import config_integration
77

8-
config_integration.trace_integrations(["requests"])
9-
OpenCensusExtension.configure()
8+
if settings.APPLICATIONINSIGHTS_CONNECTION_STRING:
9+
config_integration.trace_integrations(["requests"])
10+
OpenCensusExtension.configure()
1011

1112

1213
def setup_logging(module) -> Logger:

0 commit comments

Comments
 (0)