getsentry / sentry-python

The official Python SDK for Sentry.io
https://sentry.io/for/python/
MIT License
1.93k stars 509 forks source link

feat(spotlight): Auto enable cache_spans for Spotlight on DEBUG #3791

Closed BYK closed 3 days ago

BYK commented 6 days ago

This patch enables cache_spans in Django integration automatically when Spotlight is enabled and DEBUG is set in Django settings.

codecov[bot] commented 6 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 84.29%. Comparing base (da0b086) to head (c8e104b). Report is 3 commits behind head on master.

:white_check_mark: All tests successful. No failed tests found.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3791 +/- ## ========================================== - Coverage 84.30% 84.29% -0.02% ========================================== Files 137 137 Lines 14561 14564 +3 Branches 2460 2460 ========================================== + Hits 12275 12276 +1 Misses 1528 1528 - Partials 758 760 +2 ``` | [Files with missing lines](https://app.codecov.io/gh/getsentry/sentry-python/pull/3791?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | Coverage Δ | | |---|---|---| | [sentry\_sdk/integrations/django/caching.py](https://app.codecov.io/gh/getsentry/sentry-python/pull/3791?src=pr&el=tree&filepath=sentry_sdk%2Fintegrations%2Fdjango%2Fcaching.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9pbnRlZ3JhdGlvbnMvZGphbmdvL2NhY2hpbmcucHk=) | `97.87% <100.00%> (+0.07%)` | :arrow_up: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/getsentry/sentry-python/pull/3791/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry)