To optimize the amount of data sent via LogsIngestionClient.upload operation, you can consider tuning the transfer options of the Azure Storage client library for Python. This can be done by configuring the client library transfer options based on the environment your app runs in.
Some considerations for tuning data transfer options include setting the chunk size for uploads and downloads, using parallelism for uploads and downloads, and using compression for uploads.
In your specific case, you may want to experiment with adjusting the chunk size and parallelism settings to see if it improves the performance of your LogsIngestionClient.upload operation. Additionally, you may want to consider using compression for uploads to reduce the amount of data being sent over the network.
References: