Skip to content

Fix cache_prefixes check for multiple keys. #3127

@antonpirker

Description

@antonpirker

Currently when there are multiple cache keys (for example in mget in redis) we are only checking the first for cache_prefixes.

We should check all the keys and if one contains the prefix, considered it a cache span.

Here: https://github.com/getsentry/sentry-python/blob/master/sentry_sdk/integrations/redis/modules/caches.py#L37

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions