Skip to content

fix: don't strip 'src' from filepaths#34

Draft
mdb wants to merge 1 commit into
masterfrom
mdb/improve-stack-trace-accuracy
Draft

fix: don't strip 'src' from filepaths#34
mdb wants to merge 1 commit into
masterfrom
mdb/improve-stack-trace-accuracy

Conversation

@mdb

@mdb mdb commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

Beginning with its initial commit (237936d)
8 years ago, oops strips anything up to and including a /src/ from
filepaths in stack frames. For example, files like go/foo/bar/src/baz/bim.go
appear as baz/bim.go in stack frames.

In addition to being somewhat confusing and arbitrary (depending on
codebase/expections), this also seemingly breaks Datadog source code
integration
;
Datadog is unable to use git metadata
embeddd in telemetry to properly link to GitHub files.

This seeks to change that.

Signed-off-by: Mike Ball [email protected]

Beginning with its initial commit (237936d)
8 years ago, `oops` strips anything up to and including a `/src/` from
filepaths in stack frames. For example, files like `go/foo/bar/src/baz/bim.go`
appear as `baz/bim.go` in stack frames.

In addition to being somewhat confusing and arbitrary (depending on
codebase/expections), this also seemingly breaks [Datadog source code
integration](https://docs.datadoghq.com/integrations/guide/source-code-integration/);
Datadog is unable to use [git metadata](https://docs.datadoghq.com/integrations/guide/source-code-integration/?tab=githubsaasonprem#embed-git-information-in-your-build-artifacts)
embeddd in telemetry to properly link to GitHub files.

This seeks to change that.

Signed-off-by: Mike Ball <[email protected]>
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.

1 participant