@@ -96,7 +96,7 @@ OpenCensus maps the following exporters to the types of telemetry that you see i
96
96
logger.addHandler(AzureLogHandler())
97
97
98
98
# 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>))
100
100
101
101
""" Generate random log data."""
102
102
for num in range (5 ):
@@ -122,7 +122,7 @@ OpenCensus maps the following exporters to the types of telemetry that you see i
122
122
logger = logging.getLogger(__name__ )
123
123
logger.addHandler(AzureLogHandler())
124
124
# 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>))
126
126
127
127
properties = {' custom_dimensions' : {' key_1' : ' value_1' , ' key_2' : ' value_2' }}
128
128
@@ -184,7 +184,7 @@ from opencensus.ext.azure.log_exporter import AzureLogHandler
184
184
logger = logging.getLogger(__name__ )
185
185
logger.addHandler(AzureLogHandler())
186
186
# 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>))
188
188
189
189
properties = {' custom_dimensions' : {' key_1' : ' value_1' , ' key_2' : ' value_2' }}
190
190
@@ -208,7 +208,7 @@ from opencensus.ext.azure.log_exporter import AzureEventHandler
208
208
logger = logging.getLogger(__name__ )
209
209
logger.addHandler(AzureLogHandler())
210
210
# 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>))
212
212
213
213
logger.setLevel(logging.INFO )
214
214
logger.info(' Hello, World!' )
0 commit comments