You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cache spans are turned off by default for Django cache due to performance issues described in #2122
Recent load testing showed that cache spans did not introduce significant overhead, granted in a clean room environment, #3058
Proposal
We should turn on cache spans by default, as it will allow more sentry users to get value out of cache insights.
However, before doing so, we should find a suitably high traffic deployment to validate the findings in #3058.
Solution Brainstorm
Are there any other ways we could detect that emitting cache spans is creating too much load on a system and disable cache spans, rather than defaulting cache_spans=False, i.e., disable cache spans if a certain volume of traffic is hit, rather than by default:
We can dogfood cache spans on our sentry installation and see how much overview this creates. If we are comfortable turning cache spans on, than I guess setting it to true by default is OK.
Activity
fix(django): Fix errors when instrumenting Django cache
fix(django): Fix errors when instrumenting Django cache (#3855)
antonpirker commentedon Dec 11, 2024
We can dogfood cache spans on our
sentryinstallation and see how much overview this creates. If we are comfortable turning cache spans on, than I guess setting it to true by default is OK.BYK commentedon Dec 11, 2024
@antonpirker you wanna enable it over at
getsentry/sentrythen? I'll approve it :)BYK commentedon Dec 30, 2024
getsentry/sentry#82645 is up. If all goes well, we can enable this for everyone by default.
antonpirker commentedon Jan 8, 2025
@BYK I have done some more local load testing (see #3907) to see how much overhead is added using the newest Python SDK.
feat: Enable Django cache_spans in Sentry SDK (#82645)
feat: Enable Django cache_spans in Sentry SDK (#82645)
feat(django): Enable cache spans by default (#7522)