Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
/ ServerCommon Public archive

Work-around heartbeat interval initialization bug in AI #321

Merged
merged 3 commits into from
Nov 27, 2019

Conversation

xavierdecoster
Copy link
Member

@xavierdecoster xavierdecoster commented Nov 19, 2019

Verified changes locally against the solution that reproduced the AppInsights bug, and this work-around works.

Also need to verify our usage of TelemetryConfiguration.Active throughout the code consuming this library, as that API is being deprecated, and TelemetryConfiguration.Active won't pick up this custom initialized instance.

@xavierdecoster xavierdecoster self-assigned this Nov 19, 2019
Make DiagnosticsTelemetryModule accessible to allow tweaking heartbeats.
@xavierdecoster
Copy link
Member Author

xavierdecoster commented Nov 26, 2019

Updated the PR with:

  • more API docs and comments
  • removed static state (call-site responsibility to handle the returned state)
  • added unit tests (there were none)
  • updated API to return new ApplicationInsightsConfiguration object holding handles to the initialized TelemetryConfiguration and DiagnosticsTelemetryModule

///
/// It is the caller's responsibility to ensure the returned configuration is used
/// when creating new <see cref="TelemetryClient"/> instances.
/// </remarks>
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@skofman1 skofman1 left a comment

Choose a reason for hiding this comment

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

:shipit:

@xavierdecoster xavierdecoster merged commit bfe443d into master Nov 27, 2019
@xavierdecoster xavierdecoster deleted the dev-ai-issue1298 branch November 27, 2019 16:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants