azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

[Monitor][Ingestion] Adjust upload error handling

Open pvaneck opened this issue 3 years ago • 1 comments

This uses a callback approach where a user can optionally pass in an on_error callback function for custom error handing.

This callback function should expect arbitrary keyword arguments (**kwargs) or expect an error and logs argument.

If no on_error callback function is passed in, then the default behavior will be to raise the first error encountered.

A sync and async sample were added demonstrating usage.

pvaneck avatar Nov 17 '22 02:11 pvaneck

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-monitor-ingestion

azure-sdk avatar Nov 17 '22 03:11 azure-sdk