Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Add file filter that can alter file names used in stack traces #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Schnouki
Copy link

This very small patch is something I needed when deploying an app on Heroku.

On Heroku, my app was built in something like /tmp/tmp.FtT7NPkJnn/.go/src/mypackage, but at runtime the app was in /app (with its source files). Because of that, at runtime raven could not access the source files as it was looking in /tmp/tmp.FtT7NPkJnn/....

By adding a FileFilter() functions that checks if the file is available in the working dir, I am now able to have full, readable stack traces on Sentry with proper context. Which is nice 😃

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant