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

This disables Django Cache spans by default. #2120

Merged
merged 2 commits into from
May 17, 2023

Conversation

antonpirker
Copy link
Member

@antonpirker antonpirker commented May 17, 2023

Users were telling us that the cache spans are adding to much overhead onto their servers, so we are disabling cache spans by default and make them opt-in.

@antonpirker antonpirker changed the title Makes Django Cache spans disabled by default This disables Django Cache spans by default. May 17, 2023
@antonpirker antonpirker marked this pull request as ready for review May 17, 2023 09:34
@@ -1029,6 +1027,8 @@ def test_cache_spans_middleware(
],
traces_sample_rate=1.0,
)

client.application.load_middleware()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By changing the default it was uncovered, that this test only worked by coincidence. Had to load the middleware after sdk init, to have the options set in DjangoIntegration.

@antonpirker antonpirker merged commit 4d80670 into master May 17, 2023
244 checks passed
@antonpirker antonpirker deleted the antonpirker/make-django-cache-spans-opt-in branch May 17, 2023 10:00
sentrivana pushed a commit that referenced this pull request May 19, 2023
* Made Django Cache spans disabled by default
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 this pull request may close these issues.

None yet

2 participants