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: Add local source context via devserver #741

Merged
merged 3 commits into from
Jan 16, 2020
Merged

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented Jan 9, 2020

No description provided.

@HazAT HazAT requested a review from lobsterkatie January 9, 2020 16:47
@HazAT HazAT self-assigned this Jan 9, 2020
function: frame.methodName,
in_app: inApp,
lineno: inApp ? frame.lineNumber : undefined, // :HACK
platform: inApp ? "javascript" : "node" // :HACK
Copy link
Member

@lobsterkatie lobsterkatie Jan 9, 2020

Choose a reason for hiding this comment

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

Given that we're now filtering out both node modules and native code, would it be better to make the default undefined? Or to test for frame.file.includes("native code") also, and if it fails both the inApp test and the native code test, then have it default to node?

@HazAT
Copy link
Member Author

HazAT commented Jan 10, 2020

I've refactored the code in our code packages since we had this functionality already.
I've also added tests:
getsentry/sentry-javascript#2376

@HazAT HazAT merged commit 8f93ae5 into master Jan 16, 2020
@HazAT HazAT deleted the feat/local-source-context branch January 16, 2020 08:10
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.

2 participants