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

[AzureMonitorExporter] Refactor RestClient and DebugWritter #32172

Merged
merged 2 commits into from
Nov 2, 2022

Conversation

TimothyMothra
Copy link
Contributor

@TimothyMothra TimothyMothra commented Oct 28, 2022

Changes

  • refactor RestClient
    • cache the RawRequestUriBuilder to reduce allocations
    • remove dupe code
    • fix SendFromStorage
      This was creating a NDJsonWriter that was never used
  • refactor DebugWritter
    • WriteMessage wasn't writing a new-line.
    • add WriteTelemetryFromStorage to print the ReadOnlyMemory<byte>

image

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

Copy link
Member

@vishweshbankwar vishweshbankwar left a comment

Choose a reason for hiding this comment

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

LGTM - Changelog for improved logging will be good.

@TimothyMothra TimothyMothra enabled auto-merge (squash) November 2, 2022 17:30
@TimothyMothra TimothyMothra merged commit fea9a34 into main Nov 2, 2022
@TimothyMothra TimothyMothra deleted the tilee/rest_client branch November 2, 2022 17:48
sofiar-msft pushed a commit to sofiar-msft/azure-sdk-for-net that referenced this pull request Dec 7, 2022
)

* refactor rest client and debugwritter

* changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monitor - Exporter Monitor OpenTelemetry Exporter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants