Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Monitor Exporter - Add IngestionResponsePolicy #16032

Merged
merged 4 commits into from
Oct 17, 2020

Conversation

rajkumar-rangaraj
Copy link
Contributor

  • Disable Retry provided with Azure SDK
  • Created a new IngestionResponsePolicy which inherits from HttpPipelineSynchronousPolicy. This policy will have ability to check parse response and store to disk
  • Modified ApplicationInsightsRestClient to return ItemsAccepted on InternalTrackAsync
  • Added InternalTrackAsync overload to send data from storage

@rajkumar-rangaraj rajkumar-rangaraj changed the title Added IngestionResponsePolicy Azure Monitor Exporter - Add IngestionResponsePolicy Oct 16, 2020
}
}
catch (Exception ex)
{
if (ex?.InnerException?.InnerException?.Source == "System.Net.Http")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pakrym what's the best practice for Azure SDKs? Relying on the knowledge of inner exception hierarchy seems fragile and could break in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will merge the PR and follow up with @pakrym for best practice.

Copy link
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left couple non-blocking comments.

@rajkumar-rangaraj rajkumar-rangaraj merged commit fdc2bd7 into Azure:master Oct 17, 2020
annelo-msft pushed a commit to annelo-msft/azure-sdk-for-net that referenced this pull request Feb 17, 2021
* Added IngestionResponsePolicy

* check for object is int

* Added constant to response code

* Added method summary.
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