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

Update payload names for sql.active_record instrumentation to be more descriptive. #30619

Merged

Conversation

jagthedrummer
Copy link
Contributor

Summary

This updates payload names of sql.active_record instrumentation for create, update, and destroy operations to match the pattern set up by find and count operations.

Previous behavior:

  • When a Book is created the payload name was "SQL".
  • When a Book is updated the payload name was "SQL".
  • When a Book is deleted the payload name was "SQL".

New behavior:

  • When a Book is created the payload name is "Book Create".
  • When a Book is updated the payload name is "Book Update".
  • When a Book is deleted the payload name is "Book Delete".

Fixes #30586.

Other Information

Thread from the rails core mailing list: https://groups.google.com/forum/#!topic/rubyonrails-core/yh9lg0nmvOQ

@rails-bot
Copy link

Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @eileencodes (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

This repository is being automatically checked for code quality issues using Code Climate. You can see results for this analysis in the PR status below. Newly introduced issues should be fixed before a Pull Request is considered ready to review.

Please see the contribution instructions for more information.

@jagthedrummer jagthedrummer changed the title Update payload names for sql.active_record to be more descriptive. Update payload names for sql.active_record instrumentation to be more descriptive. Sep 16, 2017
@eileencodes
Copy link
Member

@jagthedrummer thanks for the PR. This looks good. Can you squash your commits into 1 please? Thanks!

@jagthedrummer jagthedrummer force-pushed the jeremy/instrumentation-payload-names branch from 683aedf to fda9df7 Compare September 20, 2017 21:46
@jagthedrummer
Copy link
Contributor Author

Hey, @eileencodes, thanks for taking a look. I just squashed everything, so I think it should be ready to go now. Cheers!

@eileencodes eileencodes merged commit 55e50f7 into rails:master Sep 20, 2017
@eileencodes
Copy link
Member

Congrats on your first Rails contribution! 😄 🎉

kamipo added a commit to kamipo/rails that referenced this pull request Apr 10, 2021
The payload name for `delete_all` was named "Destroy" in rails#30619 since
`delete_all` was used in `record.destroy` at that time.

Since ea45d56, `record.destroy` no longer relies on `delete_all`, so now
we can improve the payload name for `delete_all` to more appropriate.
brendon pushed a commit to brendon/rails that referenced this pull request Jun 17, 2021
The payload name for `delete_all` was named "Destroy" in rails#30619 since
`delete_all` was used in `record.destroy` at that time.

Since ea45d56, `record.destroy` no longer relies on `delete_all`, so now
we can improve the payload name for `delete_all` to more appropriate.
wbotelhos pushed a commit to wbotelhos/rails that referenced this pull request Jul 18, 2021
The payload name for `delete_all` was named "Destroy" in rails#30619 since
`delete_all` was used in `record.destroy` at that time.

Since ea45d56, `record.destroy` no longer relies on `delete_all`, so now
we can improve the payload name for `delete_all` to more appropriate.
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.

None yet

3 participants