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(inbound filters): Add file:/// url to localhost inbound filter #2214

Merged
merged 2 commits into from
Jun 14, 2023

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Jun 13, 2023

This adds a filter for events whose url value starts with file:// to the existing localhost inbound filter, as such events similarly represent errors on pages opened locally.

Ref: getsentry/sentry#49519

@lobsterkatie lobsterkatie changed the title add file:/// url to localhost inbound filter feat(inbound filters): Add file:/// url to localhost inbound filter Jun 13, 2023
@lobsterkatie lobsterkatie force-pushed the kmclb-add-file-url-filter branch 3 times, most recently from 171f4f1 to fc991eb Compare June 13, 2023 16:08
@lobsterkatie lobsterkatie force-pushed the kmclb-add-file-url-filter branch from fc991eb to c4e2bfb Compare June 13, 2023 16:16
@lobsterkatie lobsterkatie requested a review from scttcper June 13, 2023 16:36
@lobsterkatie lobsterkatie marked this pull request as ready for review June 13, 2023 16:37
@lobsterkatie lobsterkatie requested a review from a team June 13, 2023 16:37
Copy link
Member

@scttcper scttcper left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -25,6 +25,9 @@ pub fn matches(event: &Event) -> bool {
}
}
}
if url.as_str().starts_with("file://") {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if url.as_str().starts_with("file://") {
if url.scheme() == "file" {

@lobsterkatie lobsterkatie force-pushed the kmclb-add-file-url-filter branch from c4e2bfb to 180951d Compare June 14, 2023 16:30
@lobsterkatie lobsterkatie force-pushed the kmclb-add-file-url-filter branch from 180951d to f3dc2a6 Compare June 14, 2023 18:01
@lobsterkatie lobsterkatie merged commit c598b79 into master Jun 14, 2023
@lobsterkatie lobsterkatie deleted the kmclb-add-file-url-filter branch June 14, 2023 20:57
@lobsterkatie lobsterkatie linked an issue Jun 15, 2023 that may be closed by this pull request
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.

Investigate server filter for file://
3 participants