Skip to content

Commit 3431c78

Browse files
Merge pull request #231971 from KrishnaG-MSFT/patch-278
(AzureCXP) MicrosoftDocs/azure-docs#107145
2 parents f5a2dc0 + a60972a commit 3431c78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/azure-monitor/app/opencensus-python.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ OpenCensus maps the following exporters to the types of telemetry that you see i
9696
logger.addHandler(AzureLogHandler())
9797

9898
# Alternatively manually pass in the connection_string
99-
# logger.addHandler(AzureLogHandler(connection_string=<appinsights-connection-string>)
99+
# logger.addHandler(AzureLogHandler(connection_string=<appinsights-connection-string>))
100100

101101
"""Generate random log data."""
102102
for num in range(5):
@@ -122,7 +122,7 @@ OpenCensus maps the following exporters to the types of telemetry that you see i
122122
logger = logging.getLogger(__name__)
123123
logger.addHandler(AzureLogHandler())
124124
# Alternatively manually pass in the connection_string
125-
# logger.addHandler(AzureLogHandler(connection_string=<appinsights-connection-string>)
125+
# logger.addHandler(AzureLogHandler(connection_string=<appinsights-connection-string>))
126126

127127
properties = {'custom_dimensions': {'key_1': 'value_1', 'key_2': 'value_2'}}
128128

@@ -184,7 +184,7 @@ from opencensus.ext.azure.log_exporter import AzureLogHandler
184184
logger = logging.getLogger(__name__)
185185
logger.addHandler(AzureLogHandler())
186186
# Alternatively, manually pass in the connection_string
187-
# logger.addHandler(AzureLogHandler(connection_string=<appinsights-connection-string>)
187+
# logger.addHandler(AzureLogHandler(connection_string=<appinsights-connection-string>))
188188

189189
properties = {'custom_dimensions': {'key_1': 'value_1', 'key_2': 'value_2'}}
190190

@@ -208,7 +208,7 @@ from opencensus.ext.azure.log_exporter import AzureEventHandler
208208
logger = logging.getLogger(__name__)
209209
logger.addHandler(AzureLogHandler())
210210
# Alternatively manually pass in the connection_string
211-
# logger.addHandler(AzureLogHandler(connection_string=<appinsights-connection-string>)
211+
# logger.addHandler(AzureLogHandler(connection_string=<appinsights-connection-string>))
212212

213213
logger.setLevel(logging.INFO)
214214
logger.info('Hello, World!')

0 commit comments

Comments
 (0)