Skip to content

feat(performance): Sync activerecord and net-http span names#1681

Merged
st0012 merged 5 commits intomasterfrom
sync-span-names
Feb 1, 2022
Merged

feat(performance): Sync activerecord and net-http span names#1681
st0012 merged 5 commits intomasterfrom
sync-span-names

Conversation

@sl0thentr0py
Copy link
Copy Markdown
Member

@sl0thentr0py sl0thentr0py commented Jan 10, 2022

The span prefixes are needed as documented here for the discover slow ops dashboards to be populated successfully.

Note that this won't break any existing user queries since we currently don't allow filtering/searching by span ops.

Fixes #1674

@sl0thentr0py sl0thentr0py requested a review from st0012 January 10, 2022 19:22
Copy link
Copy Markdown
Contributor

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

@st0012 st0012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! Can you also add a changelog entry for it?

@st0012
Copy link
Copy Markdown
Contributor

st0012 commented Jan 10, 2022

@sl0thentr0py sorry I missed one thing: perhaps we can also add template. prefix to ActionView's tracers?

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 10, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.39%. Comparing base (9889bbe) to head (e3244bf).
⚠️ Report is 609 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1681      +/-   ##
==========================================
+ Coverage   98.37%   98.39%   +0.01%     
==========================================
  Files         136      136              
  Lines        7830     7833       +3     
==========================================
+ Hits         7703     7707       +4     
+ Misses        127      126       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sl0thentr0py
Copy link
Copy Markdown
Member Author

Yea I added those then removed it because I wasn't able to make it clean. The db one works with prefixes, if we go with a prefix for views it'll look like template.render_template.action_view.

Nicer would be template.render.action_view? In that case I'll go with a mapping hash instead of a prefix. What do you think?

@sl0thentr0py
Copy link
Copy Markdown
Member Author

nvm I just added the prefix, it's not the nicest looking with repetition but it's fine for now..

@st0012
Copy link
Copy Markdown
Contributor

st0012 commented Jan 10, 2022

Since it's to support a feature, I think the duplication is fine.

@st0012 st0012 modified the milestones: 5.0.0, 5.1.0 Jan 10, 2022
Copy link
Copy Markdown
Contributor

@st0012 st0012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feature! I'll put this to 5.1.0 release, which will be released soon after 5.0

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 1, 2022

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@st0012 st0012 merged commit 8538717 into master Feb 1, 2022
@st0012 st0012 deleted the sync-span-names branch February 1, 2022 10:25
lewispb added a commit to lewispb/sentry-ruby that referenced this pull request Feb 1, 2022
* master:
  feat(performance): Sync activerecord and net-http span names (getsentry#1681)
  Register Sentry's ErrorSubscriber for Rails 7.0+ apps (getsentry#1705)
  Support serializing ActiveRecord job arguments in global id form (getsentry#1688)
  release: 5.0.2
  Fix report_after_job_retries's decision logic (getsentry#1704)
  Followup of getsentry#1701 (getsentry#1703)
  Capture transaction tags (getsentry#1701)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync span operation names

4 participants