Skip to content

Remove span description truncation in Redis #4990

@alexander-alderman-webb

Description

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

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions