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

fix(log): time waiting for appinsights to close was unbounded #3337

Open
wants to merge 2 commits into from

Conversation

huntergregory
Copy link
Contributor

@huntergregory huntergregory commented Jan 8, 2025

Reason for Change:

When CNS (and NPM after #3333) crash, they block on a call to close the app insights client so that queued logs are sent. This relies on a channel which might not close until much after the timeout which NPM/CNS specify. The ApplicationInsights-Go repo recommends having a timer of our own for the maximum time we want to wait for app insights to close.

This PR changes CNS and NPM so that they wait at most 30 seconds.

Issue Fixed:

Related to #3299.

Requirements:

Notes:

@huntergregory huntergregory added cns Related to CNS. npm Related to NPM. fix Fixes something. labels Jan 8, 2025
@huntergregory huntergregory requested a review from a team as a code owner January 8, 2025 21:46
@huntergregory
Copy link
Contributor Author

/azp run Azure Container Networking PR, NPM Conformance Tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@huntergregory huntergregory force-pushed the huntergregory/fix-appinsights-close branch from 272caee to dd8c428 Compare January 8, 2025 21:53
@huntergregory
Copy link
Contributor Author

/azp run Azure Container Networking PR, NPM Conformance Tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

aitelemetry/telemetrywrapper.go Outdated Show resolved Hide resolved
aitelemetry/telemetrywrapper.go Show resolved Hide resolved
@huntergregory huntergregory force-pushed the huntergregory/fix-appinsights-close branch from 9c32780 to 7e3ee76 Compare January 9, 2025 00:36
@huntergregory
Copy link
Contributor Author

/azp run Azure Container Networking PR, NPM Conformance Tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@huntergregory huntergregory added this pull request to the merge queue Jan 9, 2025
Any commits made after this event will not be merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cns Related to CNS. fix Fixes something. npm Related to NPM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants