Skip to content
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

intake: Add rows_affected to span db information #3095

Merged
merged 4 commits into from
Jan 6, 2020

Conversation

simitt
Copy link
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

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
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