A common scenario is that users might mistakenly try sending a JSON string to the LogsIngestionClient.upload method.
Some improvements we can implement are:
- Add another check to see if the user is passing in a string and raise a
ValueError if they are.
- Include some documentation/code snippet in the readme for reading JSON strings and uploading the JSON data.
A common scenario is that users might mistakenly try sending a JSON string to the
LogsIngestionClient.uploadmethod.Some improvements we can implement are:
ValueErrorif they are.