Skip to content

Conversation

@iambriccardo
Copy link
Contributor

@iambriccardo iambriccardo commented Feb 23, 2023

This PR aims at implementing a new system for looking up source and sourcemaps files for each frame. This mechanism has been designed to account for the future implementation of debug ids.

#sync-getsentry

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 23, 2023
@iambriccardo iambriccardo changed the title debug id lookup v2 ref(sourcemaps): Redesign lookup of source and sourcemaps Feb 23, 2023
Riccardo Busetti added 2 commits February 27, 2023 16:23
Copy link
Contributor

@mitsuhiko mitsuhiko left a comment

Choose a reason for hiding this comment

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

Minor nit: encode() should be encode('utf-8') as discussed.

Copy link
Member

@Swatinem Swatinem left a comment

Choose a reason for hiding this comment

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

code and comments are a lot more readable!

This also gave me a couple of ideas for symbolicator. CC @kamilogorek @loewenheim just fyi


# Cache holding the results of the fetching by url.
self.fetch_by_url_sourceviews = {}
self.fetch_by_url_errors = {}
Copy link
Member

Choose a reason for hiding this comment

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

is this the only place that stores (cached) download errors?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, it is.

@iambriccardo iambriccardo merged commit 8e1ef19 into master Feb 28, 2023
@iambriccardo iambriccardo deleted the debug-id-lookup-v2 branch February 28, 2023 14:40
self.allow_scraping = allow_scraping

def bind_release(self, release=None, dist=None):
"""Updates the fetcher with a project, release and dist."""
Copy link
Contributor

@kamilogorek kamilogorek Feb 28, 2023

Choose a reason for hiding this comment

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

It doesn't bind the project 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mitsuhiko what is your excuse? 👀🤣

jan-auer added a commit that referenced this pull request Feb 28, 2023
* master: (79 commits)
  feat(perf-issues): Add performance issue detection timing runner command (#44912)
  Revert "chore: Investigating org slug already set to a different value (#45134)"
  fix(hybrid-cloud): Redirect to org restoration page for customer domains (#45159)
  bug(replays): Fix 500 error when marshaling tags field (#45097)
  ref(sourcemaps): Redesign lookup of source and sourcemaps (#45032)
  chore: Investigating org slug already set to a different value (#45134)
  feat(dynamic-sampling): Implement prioritize by project bias [TET-574] (#42939)
  feat(dynamic-sampling): Add transaction name prioritize option - (#45034)
  feat(dyn-sampling): add new bias toggle to project details for prioritise by tx name [TET-717] (#44944)
  feat(admin) Add admin relay project config view [TET-509] (#45120)
  Revert "chore(assignment): Add analytics when autoassigning after a manual assignment (#45099)"
  feat(sourcemaps): Implement new tables supporting debug ids (#44572)
  ref(js): Remove usage of react-document-title (#45170)
  chore(py): Consistently name urls using `organization-` prefix (#45180)
  ref: rename acceptance required checks collector (#45156)
  chore(assignment): Add analytics when autoassigning after a manual assignment (#45099)
  feat(source-maps): Update copy for source map debug alerts (#45164)
  ref(js): Remove custom usage of DocumentTitle (#45165)
  chore(login): update the login banners (#45151)
  ref(py): Remove one more legacy project_id from Environment (#45160)
  ...
mitsuhiko pushed a commit that referenced this pull request Feb 28, 2023
This PR fixes a problem introduced in the redesign PR
(#45032), which we overlooked
the `self.project` parameter in the `Fetcher`.
@github-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2023
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.

5 participants