Skip to content

This disables Django Cache spans by default.#2120

Merged
antonpirker merged 2 commits intomasterfrom
antonpirker/make-django-cache-spans-opt-in
May 17, 2023
Merged

This disables Django Cache spans by default.#2120
antonpirker merged 2 commits intomasterfrom
antonpirker/make-django-cache-spans-opt-in

Conversation

@antonpirker
Copy link
Copy Markdown
Contributor

@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
traces_sample_rate=1.0,
)

client.application.load_middleware()
Copy link
Copy Markdown
Contributor 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
@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.

2 participants