Title: Span `code.filepath` property has the absolute path, rather than the in-app path · Issue #2540 · getsentry/sentry-python · GitHub
Open Graph Title: Span `code.filepath` property has the absolute path, rather than the in-app path · Issue #2540 · getsentry/sentry-python
X Title: Span `code.filepath` property has the absolute path, rather than the in-app path · Issue #2540 · getsentry/sentry-python
Description: How do you use Sentry? Sentry Saas (sentry.io) Version 1.37.0 Steps to Reproduce Enable the enable_db_query_source SDK option Instrument a path that has a query > 100ms Examine the span that comes into Sentry Expected Result The code.fil...
Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 1.37.0 Steps to Reproduce Enable the enable_db_query_source SDK option Instrument a path that has a query > 100ms Examine the span that comes ...
X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 1.37.0 Steps to Reproduce Enable the enable_db_query_source SDK option Instrument a path that has a query > 100ms Examine the span that com...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/2540
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Span `code.filepath` property has the absolute path, rather than the in-app path","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n1.37.0\n\n### Steps to Reproduce\n\n1. Enable the `enable_db_query_source` SDK option\r\n2. Instrument a path that has a query > 100ms\r\n3. Examine the span that comes into Sentry\n\n### Expected Result\n\nThe `code.filepath` property is an in-app path, something like `/app/controllers/view.py`\r\n\r\nThe 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`?\n\n### Actual Result\n\nThe `code.filepath` property is an absolute path, something like `/usr/george/server/app/controllers/view.py`","author":{"url":"https://github.com/gggritso","@type":"Person","name":"gggritso"},"datePublished":"2023-11-28T19:08:34Z","url":"https://github.com/getsentry/sentry-python/issues/2540"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:93f0cc94-78b6-4ca5-f821-86af424191a6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3D4:1EC1E3:462794:6114B9:6B00906A |
| html-safe-nonce | 708af644b01fb392b03c6f28e6bd78e4f7910b2d18ed90083e16cf6913963e87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0Q0OjFFQzFFMzo0NjI3OTQ6NjExNEI5OjZCMDA5MDZBIiwidmlzaXRvcl9pZCI6IjEzMTUyNDkzMTg2MTI5OTYyMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 75ef19f6267c74cc48559d80ee78970273121ef0177feaf44cb7ebcfa5cd778e |
| hovercard-subject-tag | issue:2015123825 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/2540/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cdef6d6da65ee92c11ab2f7a7347faef13176411e89952f191417812eaf50feb/getsentry/sentry-python/issues/2540 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cdef6d6da65ee92c11ab2f7a7347faef13176411e89952f191417812eaf50feb/getsentry/sentry-python/issues/2540 |
| og:image:alt | How do you use Sentry? Sentry Saas (sentry.io) Version 1.37.0 Steps to Reproduce Enable the enable_db_query_source SDK option Instrument a path that has a query > 100ms Examine the span that comes ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gggritso |
| hostname | github.com |
| expected-hostname | github.com |
| None | c710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | be616a2a6ec1c609d6e002896dff5352d5c5f28b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width