azure-monitor-ingestion: add input type check for logs #32681
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor
Monitor, Monitor Ingestion, Monitor Query
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Is your feature request related to a problem? Please describe.
I have been troubleshooting why my logs do not arrive in my destination in LogAnalytics Workspace, even though there was no error. At the end, my error was that my input for the logs argument in
LogIngestionClient.upload()
was a dict instead of a list.Describe the solution you'd like
It would be nice to raise an error if the logs input has a wrong type.
Alternative solution
Alternatively, it could also be a solution to allow a dictionary and a list as input for
logs
.The text was updated successfully, but these errors were encountered: