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

Span code.filepath property has the absolute path, rather than the in-app path #2540

Closed
gggritso opened this issue Nov 28, 2023 · 0 comments · Fixed by #2541
Closed

Span code.filepath property has the absolute path, rather than the in-app path #2540

gggritso opened this issue Nov 28, 2023 · 0 comments · Fixed by #2541

Comments

@gggritso
Copy link
Member

How do you use Sentry?

Sentry Saas (sentry.io)

Version

1.37.0

Steps to Reproduce

  1. Enable the enable_db_query_source SDK option
  2. Instrument a path that has a query > 100ms
  3. Examine the span that comes into Sentry

Expected Result

The code.filepath property is an in-app path, something like /app/controllers/view.py

The span's code.filepath contains the full absolute path to the file. This is different from Laravel, which attaches the in-app path. Is it possible for the Python SDK to put the app path into code.filepath?

Actual Result

The code.filepath property is an absolute path, something like /usr/george/server/app/controllers/view.py

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 a pull request may close this issue.

1 participant