Giter Site home page Giter Site logo

Comments (2)

sentrivana avatar sentrivana commented on July 26, 2024 2

Fix out now in 2.5.0

from sentry-python.

MartinBraquet avatar MartinBraquet commented on July 26, 2024 1

This issue has even more coverage than just int keys. It fails for any SCAN call in v2.4.0.

import redis
import sentry_sdk

sentry_sdk.init(dsn=...)

client = redis.Redis()
cursor, keys = client.scan()

Will raise

Traceback (most recent call last):
  File "_sentry_error.py", line 9, in <module>
    cursor, keys = client.scan()
  File "redis/commands/core.py", line 3026, in scan
    return self.execute_command("SCAN", *pieces, **kwargs)
  File "sentry_sdk/integrations/redis/_sync_common.py", line 72, in sentry_patched_execute_command
    cache_properties = _compile_cache_span_properties(
  File "sentry_sdk/integrations/redis/modules/caches.py", line 33, in _compile_cache_span_properties
    key_as_string = _key_as_string(key)
  File "sentry_sdk/integrations/redis/utils.py", line 61, in _key_as_string
    key = ", ".join(_safe_decode(x) for x in key)
TypeError: sequence item 0: expected str instance, int found

Most recent working version: v2.3.1.
Failing PR likely to be #3110
Thanks for your work

from sentry-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.