dynatrace-extensions / dt-extensions-python-sdk

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

Fix event batch logic #63

Closed dlopes7 closed 5 months ago

dlopes7 commented 5 months 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.