-
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
Changing add_event to start sending missing fields #1663
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1663 +/- ##
==========================================
Coverage ? 67.65%
==========================================
Files ? 80
Lines ? 11515
Branches ? 1616
==========================================
Hits ? 7790
Misses ? 3383
Partials ? 342
Continue to review full report at Codecov.
|
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.
Some minor comments and feedback
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.
posted a few comments
Also, removing the import test.tools.* and breaking it apart.
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
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 with two questions
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. Please ping me once end-to-end tests are completed.
c2175e5
to
196d9aa
Compare
1. Added "in" support for TelemetryEvent for easier code check. Also added complementary tests for the same. 2. Updated the tests in test_monitor to reflect newer sysinfo fields added. 3. Added comments to describe the decisions behind the field decisions.
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.
Added a few comments, let me know what you think
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
tests/ga/test_monitor.py
Outdated
@@ -174,6 +170,7 @@ def test_add_sysinfo_should_honor_sysinfo_values_from_agent_for_agent_events(sel | |||
|
|||
counter = 0 | |||
for p in event.parameters: | |||
print(p.name, p.value) |
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.
Remove?
Description
This PR makes changes to the base implementation methods used for sending events to telemetry, to add newer telemetry fields which weren't sent earlier. Mainly TaskName, EventTid, EventPid, OpCodeName, KeywordName. The ExecutionMode has been added in #1657.
PR information
Quality of Code and Contribution Guidelines
This change is