-
Notifications
You must be signed in to change notification settings - Fork 522
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
add event.ingested to APM events #3279
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3279 +/- ##
=======================================
Coverage 79.48% 79.48%
=======================================
Files 107 107
Lines 5607 5607
=======================================
Hits 4457 4457
Misses 1150 1150 |
tests/system/test_integration.py
Outdated
@@ -69,6 +69,11 @@ def test_load_docs_with_template_and_add_transaction(self): | |||
# compare existing ES documents for transactions with new ones | |||
rs = self.es.search(index=index_transaction) |
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.
looks like we can change these to wait_for_events
and consolidate the event.ingested
munging
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.
so they do not match @timestamp exactly
@@ -31,6 +31,9 @@ | |||
"us": 1494342245999000 | |||
}, | |||
"@timestamp": "2017-05-09T15:04:05.999Z", | |||
"event": { | |||
"ingested": "2017-05-09T15:04:05.998Z" |
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.
The timestamps look odd - have you set them once manually? (They should be some date yesterday)
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.
Good eye - yes, I set them manually
rs = self.es.search(index=index_transaction) | ||
assert rs['hits']['total']['value'] == 4, "found {} documents".format(rs['count']) | ||
self.approve_docs('transaction', rs['hits']['hits']) | ||
transaction_docs = self.wait_for_events('transaction', 4, index=index_transaction) |
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.
💯
does this need a backport? |
yes please! |
closes #2934