Skip to content

[Monitor][Ingestion] Adjust upload error handling#27556

Merged
pvaneck merged 4 commits intoAzure:mainfrom
pvaneck:ingestion-error
Jan 6, 2023
Merged

[Monitor][Ingestion] Adjust upload error handling#27556
pvaneck merged 4 commits intoAzure:mainfrom
pvaneck:ingestion-error

Conversation

@pvaneck
Copy link
Member

@pvaneck pvaneck commented Nov 17, 2022

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.

@azure-sdk
Copy link
Collaborator

API change check

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

azure-monitor-ingestion

@pvaneck pvaneck force-pushed the ingestion-error branch 3 times, most recently from cefce57 to ac9de7e Compare November 21, 2022 23:09
@pvaneck pvaneck marked this pull request as ready for review November 21, 2022 23:46
@pvaneck pvaneck force-pushed the ingestion-error branch 3 times, most recently from 0e596fc to ce74c43 Compare December 20, 2022 19:22
This uses a callback approach to error handling where the
user can optionally pass in an error callback function for
custom error handling.

If no callback function is provided, the default behavior is
to raise the first error encountered.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck pvaneck force-pushed the ingestion-error branch 2 times, most recently from bb335d9 to ccdafce Compare December 27, 2022 20:47
Seems the type hints are more feasible with positional args.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Co-authored-by: Anna Tisch <antisch@microsoft.com>
@pvaneck pvaneck merged commit 8fc3f93 into Azure:main Jan 6, 2023
@pvaneck pvaneck deleted the ingestion-error branch January 6, 2023 19:59
iscai-msft added a commit that referenced this pull request Apr 26, 2023
…into version_tolerant_models

* 'main' of https://github.com/Azure/azure-sdk-for-python: (1604 commits)
  [Storage] Matching `_shared` folder contents across all packages (#28031)
  [ml] Rename MLException back to MlException (#28210)
  [EventHubs] update readme to include uamqp backcompat section (#28198)
  [Monitor][Ingestion] Adjust upload error handling (#27556)
  Add 3.11 to QA (#28169)
  p1 component deployment exisitng job definition (#28194)
  Typing for identity (#28159)
  [ServiceBus] Allow clearing of session state (#27726)
  [ML][Pipelines] Fix parallel-for validation rule: allow empty dict as loop config item (#28178)
  [ML][Pipelines] feat: enable concurrent component registration (#28118)
  [ML][Pipelines] Test: update invalid reuse test (#28180)
  [AutoRelease] t2-loadtesting-2022-12-23-48532(can only be merged by SDK owner) (#28042)
  [ML][Pipelines] Test: update unstable tests in ci (#28157)
  [ML]: Adding experimental decorator to JobDefinition (#28200)
  [Identity] Fix 'az' existence check in CliCred (#27991)
  [EventHubs] fix tracing bug (#28149)
  ShortForMigrateFrom (#28192)
  Address the API review comments (#28188)
  [SchemaRegistryAvro] update recordings (#28158)
  [EventHub] update uamqp_transport docstring (#28186)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants