Include number of rows_affected in span db context for Sequel#668
Include number of rows_affected in span db context for Sequel#668mikker merged 6 commits intoelastic:masterfrom
rows_affected in span db context for Sequel#668Conversation
Codecov Report
@@ Coverage Diff @@
## master #668 +/- ##
=======================================
Coverage 63.94% 63.94%
=======================================
Files 99 99
Lines 2951 2951
=======================================
Hits 1887 1887
Misses 1064 1064Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Looks good 👍
I like the idea of having a Sql value object with methods like you propose. This is probably also just fine for now.
Do we want to wait with merging this until it is merged (or maybe even released) in APM Server? APM Server will just ignore unknown fields so there's not going to be trouble but it might be a bit wasteful to send the bytes when no APM Server version will use them.
|
Yes, I agree this is fine for now. Maybe we can change the summarizer to return a value object when we've tested the new one enough and switch over to using it as the default. I have no problem leaving this and waiting to merge until the server completes its implementation. 👍🏼 |
Closes #574
Changes in this PR include:
start_spanandend_spaninstead ofwith_spanin the Sequel spy because the span's db context needs to be updated before it is queued for transport.rows_affectedattribute onSpan::Context::DBobjectrows_affectedfield in serialized span JSON object** Opportunity for improvement: it'd be nice if we could somehow use the SQL summarizer to check if the statement is an
updateordeleteto avoid using a regex here. Maybe we could return a parsed object instead of aStringfrom the new SQL summarizer that you can callto_son and other methods likeupdate?ordelete?.