Check if we can remove the truncation here. We should keep the max_data_size option to not break anyone, but can look into increasing the default value, or removing the option in the next major. The truncation is only applied to span descriptions.
|
def _get_cache_span_description(redis_command, args, kwargs, integration): |
|
# type: (str, tuple[Any, ...], dict[str, Any], RedisIntegration) -> str |
|
description = _key_as_string(_get_safe_key(redis_command, args, kwargs)) |
|
|
|
data_should_be_truncated = ( |
|
integration.max_data_size and len(description) > integration.max_data_size |
|
) |
|
if data_should_be_truncated: |
|
description = description[: integration.max_data_size - len("...")] + "..." |
|
|
|
return description |
Check if we can remove the truncation here. We should keep the
max_data_sizeoption to not break anyone, but can look into increasing the default value, or removing the option in the next major. The truncation is only applied to span descriptions.sentry-python/sentry_sdk/integrations/redis/modules/caches.py
Lines 65 to 75 in e9738f6