You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: contrib/opencensus-ext-azure/README.rst
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,20 @@ You can enrich the logs with trace IDs and span IDs by using the `logging integr
73
73
logger.warning('In the span')
74
74
logger.warning('After the span')
75
75
76
+
You can also add custom properties to your log messages in the form of key-values.
77
+
78
+
WARNING: For this feature to work, you need to pass a dictionary as the argument. If you pass arguments of any other type, the logger will ignore them. The solution is to convert these arguments into a dictionary.
79
+
80
+
.. code:: python
81
+
82
+
import logging
83
+
84
+
from opencensus.ext.azure.log_exporter import AzureLogHandler
0 commit comments