File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ def test_pii_data_sent(sentry_init, capture_events):
154154 assert spans [3 ]["description" ] == "DEL 'somekey1' 'somekey2'"
155155
156156
157- def test_data_truncation (sentry_init , capture_events ):
157+ def test_no_data_truncation_by_default (sentry_init , capture_events ):
158158 sentry_init (
159159 integrations = [RedisIntegration ()],
160160 traces_sample_rate = 1.0 ,
@@ -172,10 +172,8 @@ def test_data_truncation(sentry_init, capture_events):
172172 (event ,) = events
173173 spans = event ["spans" ]
174174 assert spans [0 ]["op" ] == "db.redis"
175- assert spans [0 ]["description" ] == "SET 'somekey1' '%s..." % (
176- long_string [: 1024 - len ("..." ) - len ("SET 'somekey1' '" )],
177- )
178- assert spans [1 ]["description" ] == "SET 'somekey2' '%s'" % (short_string ,)
175+ assert spans [0 ]["description" ] == f"SET 'somekey1' '{ long_string } '"
176+ assert spans [1 ]["description" ] == f"SET 'somekey2' '{ short_string } '"
179177
180178
181179def test_data_truncation_custom (sentry_init , capture_events ):
You can’t perform that action at this time.
0 commit comments