-
Notifications
You must be signed in to change notification settings - Fork 372
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
Retrieve latest container id from cache when sending telemetry events #1628
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1628 +/- ##
==========================================
Coverage ? 66.68%
==========================================
Files ? 78
Lines ? 11226
Branches ? 1576
==========================================
Hits ? 7486
Misses ? 3412
Partials ? 328
Continue to review full report at Codecov.
|
c17db25
to
5884001
Compare
5884001
to
a4714e6
Compare
@@ -27,6 +27,12 @@ | |||
from azurelinuxagent.ga.exthandlers import * | |||
from azurelinuxagent.common.protocol.wire import WireProtocol, InVMArtifactsProfile | |||
|
|||
SLEEP = time.sleep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah sorry, I've been adding this to all my PRs ever since @larohra discovered this magical mock :) forgot to add a comment to this instance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor - Can you rename the var to MOCK_SLEEP? Only SLEEP felt like a boolean to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 minor suggestion else LGTM
53bcb82
to
88831b4
Compare
b0341b5
to
c7fbd7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…y events (Azure#1628)" This reverts commit 9687794.
Description
Today, we populate a group of parameters called
vminfo
once at the start of the monitoring thread. One of these parameters isContainerId
which can change without redeploying the resource and restarting the agent (e.g. during live migration).Adding the functionality to fetch the
ContainerId
parameter during the construction of the telemetry event from the process environment variables. The value is set during a goal state update.PR information
Quality of Code and Contribution Guidelines
This change is