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

feat(profiling): pass internal (profile-scoped) dsn for function metrics ingestion to vroom #66300

Merged
merged 5 commits into from Mar 6, 2024

Conversation

viglia
Copy link
Contributor

@viglia viglia commented Mar 5, 2024

No description provided.

@viglia viglia requested a review from a team as a code owner March 5, 2024 10:56
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 5, 2024
@viglia viglia requested a review from jjbayer March 5, 2024 10:57
src/sentry/profiles/task.py Outdated Show resolved Hide resolved
src/sentry/profiles/task.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 30.76923% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 84.29%. Comparing base (2fcdcff) to head (53a5560).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #66300      +/-   ##
==========================================
- Coverage   84.29%   84.29%   -0.01%     
==========================================
  Files        5309     5309              
  Lines      237222   237235      +13     
  Branches    41038    41041       +3     
==========================================
+ Hits       199972   199982      +10     
- Misses      37031    37034       +3     
  Partials      219      219              
Files Coverage Δ
src/sentry/profiles/task.py 43.86% <30.76%> (-0.40%) ⬇️

... and 5 files with indirect coverage changes

Copy link
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

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

I cannot assess whether Vroom can handle the extra "options" key in the profile, but LGTM!

src/sentry/profiles/task.py Outdated Show resolved Hide resolved
src/sentry/profiles/task.py Outdated Show resolved Hide resolved
Copy link
Member

@JoshFerge JoshFerge left a comment

Choose a reason for hiding this comment

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

worth adding tests for this?

Comment on lines +141 to +145
if options.get(
"profiling.generic_metrics.functions_ingestion.enabled"
) and project.organization_id in options.get(
"profiling.generic_metrics.functions_ingestion.allowed_org_ids"
):
Copy link
Member

Choose a reason for hiding this comment

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

As discussed, we should move this to a feature flag using the options backed rollout handler for a more incremental rollout.

But for initial testing, this is fine 👍

@viglia viglia merged commit b225c08 into master Mar 6, 2024
48 of 49 checks passed
@viglia viglia deleted the viglia/feat/pass-profiling-metrics-dsn branch March 6, 2024 15:19
aliu3ntry pushed a commit that referenced this pull request Mar 6, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants