Skip to content

oops: get prefixes to truncate after stripping#23

Open
ianvernon wants to merge 1 commit into
samsarahq:masterfrom
ianvernon:ianvernon/prefix-check-after-stripping
Open

oops: get prefixes to truncate after stripping#23
ianvernon wants to merge 1 commit into
samsarahq:masterfrom
ianvernon:ianvernon/prefix-check-after-stripping

Conversation

@ianvernon

Copy link
Copy Markdown
Contributor

When errors are serialized, oops strips any text up to, and including /src/.
Since this is what shows up in serialized errors, it makes sense that the
truncation which is done of stack frames checks whether the file has a prefix
based on the stripped file name.

@ianvernon ianvernon requested a review from evnm July 28, 2022 18:33
When errors are serialized, oops strips any text up to, and including `/src/`.
Since this is what shows up in serialized errors, it makes sense that the
truncation which is done of stack frames checks whether the file has a prefix
based on the stripped file name.
@ianvernon ianvernon force-pushed the ianvernon/prefix-check-after-stripping branch from 2a2bd95 to a8cda49 Compare July 28, 2022 18:55

@evnm evnm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good find.

Comment thread oops/oops.go
Comment on lines 26 to +27
// filtered from stacktraces based on the set of values passed by the most recent caller of this function.
// Note that the file prefix which is evaluated against the set of prefixes provided to this function when an oops

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: Prefer to put a newline between these lines so they're broken up into separate paragraphs in Godocs.

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