Skip to content

Insights: enable Django cache by default #3300

Closed

Description

@bcoe

Problem Statement

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:

high_volume_cache_spans=False

Activity

  1. self-assigned this
    on Nov 4, 2024
  2. antonpirker commented on Dec 11, 2024

    @antonpirker
    Contributor

    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.

  3. BYK commented on Dec 11, 2024

    @BYK
    Member

    @antonpirker you wanna enable it over at getsentry/sentry then? I'll approve it :)

  4. BYK commented on Dec 30, 2024

    @BYK
    Member

    getsentry/sentry#82645 is up. If all goes well, we can enable this for everyone by default.

  5. antonpirker commented on Jan 8, 2025

    @antonpirker
    Contributor

    @BYK I have done some more local load testing (see #3907) to see how much overhead is added using the newest Python SDK.

  6. added
    Breaking change
    on Jan 14, 2025
  7. added a commit that references this issue on Sep 16, 2026
    f46fbb6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions