Skip to content

intake: Add rows_affected to span db information#3095

Merged
simitt merged 4 commits intoelastic:masterfrom
simitt:2802-db-rows-affected
Jan 6, 2020
Merged

intake: Add rows_affected to span db information#3095
simitt merged 4 commits intoelastic:masterfrom
simitt:2802-db-rows-affected

Conversation

@simitt
Copy link
Copy Markdown
Contributor

@simitt simitt commented Dec 31, 2019

As layed out in elastic/apm#112 we want to include the number of rows affected by a sql database statement manipulating db data in the available database information of a span.

As this is not currently used in any aggregation, and described as additional information to be shown to users, the field is not indexed. @SergeyKleyman please let me know if you had in mind that this field should be search or aggregatable.

Update: the new field is indexed as Elasticsearch long, according to #3095 (comment).

closes #2802

Allow to include number of rows affected by a sql database statement
in the db information of a span.

closes elastic#2802
@codecov-io
Copy link
Copy Markdown

codecov-io commented Dec 31, 2019

Codecov Report

Merging #3095 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3095   +/-   ##
=======================================
  Coverage   78.83%   78.83%           
=======================================
  Files          97       97           
  Lines        4985     4985           
=======================================
  Hits         3930     3930           
  Misses       1055     1055

@SergeyKleyman
Copy link
Copy Markdown
Contributor

@simitt Thank you for letting me know. Regarding your question:

if you had in mind that this field should be search or aggregatable.

I think this field should be searchable and aggregatable to allow users for example to find out how many DB rows transactions affect on average and which transactions affect more DB rows than 95th percentile, etc.

@simitt simitt merged commit 2a032a1 into elastic:master Jan 6, 2020
simitt added a commit to simitt/apm-server that referenced this pull request Jan 6, 2020
Allow to include number of rows affected by a sql database statement
in the db information of a span.

closes elastic#2802
simitt added a commit to simitt/apm-server that referenced this pull request Jan 6, 2020
Allow to include number of rows affected by a sql database statement
in the db information of a span.

closes elastic#2802
simitt added a commit that referenced this pull request Jan 7, 2020
Allow to include number of rows affected by a sql database statement
in the db information of a span.

closes #2802
@simitt simitt deleted the 2802-db-rows-affected branch February 10, 2020 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add rows_affected for database queries in spans

4 participants