dynatrace-extensions / dt-extensions-python-sdk

Dynatrace Python Extensions SDK
https://dynatrace-extensions.github.io/dt-extensions-python-sdk/
MIT License
8 stars 2 forks source link

Fix event batch logic #63

Closed dlopes7 closed 1 month ago

dlopes7 commented 1 month ago

The previous method was checking the "len" of the dictionary, which doesn't make sense, because that only counts the number of keys in a dictionary, it doesn't check bytes.

Rewrite to be more generic, and make metrics and logs use the same method.