◐ Shell
clean mode source ↗

fix(django): trace cache.add operations by immanuwell · Pull Request #6403 · getsentry/sentry-python

Choose a reason for hiding this comment

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

In the context of span streaming, we no longer have the concept of a transaction, we instead have a segment.

Because of that, we shouldn't be invoking this method, but if we need to create a span to attach the generated cache span to, use with sentry_sdk.traces.start_span(...) instead.

The assertions from lines 575 to 579 will likely need to be updated as a result, as there will be another span caught by the capture_items line above, so the index value used will change.