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

Automatically split the payload for log events based on the size of the payload #17

Closed dlopes7 closed 3 months ago

dlopes7 commented 7 months ago

Current the max payload for log events is 1MB, soon to be 5MB.

We should automatically batch the log sending so that each call is under 5MB.

ghost commented 3 months ago

We get a lot of errors like : code: 413 message: Payload must not be larger than 1048576 bytes Would it be beneficial to implement split sending based on size, in addition to splitting by the number of lines?