Skip to content

Commit 029fec0

Browse files
authored
Update data-collector-api.md
------- cc: @bwren
1 parent baefcf8 commit 029fec0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

articles/azure-monitor/logs/data-collector-api.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,13 @@ namespace OIAPIExample
381381
```
382382

383383
### Python sample
384+
385+
>[!NOTE]
386+
> If using Python 2, you may need to change the line:
387+
> `bytes_to_hash = bytes(string_to_hash, encoding="utf-8")`
388+
> to
389+
> `bytes_to_hash = bytes(string_to_hash).encode("utf-8")`
390+
384391
```python
385392
import json
386393
import requests

0 commit comments

Comments
 (0)