@@ -121,6 +121,21 @@ Modifying Logs
121121 logger.addHandler(handler)
122122 logger.warning(' Hello, World!' )
123123
124+ Events
125+ ######
126+
127+ You can send `customEvent ` telemetry in exactly the same way you would send `trace ` telemetry except using the `AzureEventHandler ` instead.
128+
129+ .. code :: python
130+
131+ import logging
132+
133+ from opencensus.ext.azure.log_exporter import AzureEventHandler
134+
135+ logger = logging.getLogger(__name__ )
136+ logger.addHandler(AzureEventHandler(connection_string = ' InstrumentationKey=<your-instrumentation_key-here>' ))
137+ logger.setLevel(logging.INFO )
138+ logger.info(' Hello, World!' )
124139
125140 Metrics
126141~~~~~~~
@@ -178,10 +193,10 @@ The **Azure Monitor Metrics Exporter** allows you to export metrics to `Azure Mo
178193 if __name__ == " __main__" :
179194 main()
180195
181- Standard Metrics
182- ################
196+ Performance counters
197+ ####################
183198
184- The exporter also includes a set of standard metrics that are exported to Azure Monitor by default.
199+ The exporter also includes a set of performance counters that are exported to Azure Monitor by default.
185200
186201.. code :: python
187202
@@ -191,7 +206,7 @@ The exporter also includes a set of standard metrics that are exported to Azure
191206 from opencensus.ext.azure import metrics_exporter
192207
193208 def main ():
194- # All you need is the next line. You can disable standard metrics by
209+ # All you need is the next line. You can disable performance counters by
195210 # passing in enable_standard_metrics=False into the constructor of
196211 # new_metrics_exporter()
197212 _exporter = metrics_exporter.new_metrics_exporter(connection_string = ' InstrumentationKey=<your-instrumentation-key-here>' )
@@ -205,13 +220,12 @@ The exporter also includes a set of standard metrics that are exported to Azure
205220 if __name__ == " __main__" :
206221 main()
207222
208- Below is a list of standard metrics that are currently available:
223+ Below is a list of performance counters that are currently available:
209224
210225- Available Memory (bytes)
211226- CPU Processor Time (percentage)
212227- Incoming Request Rate (per second)
213228- Incoming Request Average Execution Time (milliseconds)
214- - Outgoing Request Rate (per second)
215229- Process CPU Usage (percentage)
216230- Process Private Bytes (bytes)
217231
0 commit comments