We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a10d6d commit a467636Copy full SHA for a467636
code/function/fastapp/utils.py
@@ -5,8 +5,9 @@
5
from opencensus.extension.azure.functions import OpenCensusExtension
6
from opencensus.trace import config_integration
7
8
-config_integration.trace_integrations(["requests"])
9
-OpenCensusExtension.configure()
+if settings.APPLICATIONINSIGHTS_CONNECTION_STRING:
+ config_integration.trace_integrations(["requests"])
10
+ OpenCensusExtension.configure()
11
12
13
def setup_logging(module) -> Logger:
0 commit comments