You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# when this hook is called, but only includes the command name for some# versions so we need to set it ourselves.add_body_attribute(span, " ".join(args), "db.statement")
Expected behavior
When calling the redis client zadd operation with multiple values like this:
args = ('ZADD', 'zset', 10, 'One', 20, 'Two', ...), kwargs = {}
def request_hook(
span: Span, instance: Connection, args: List[Any], kwargs: Dict[Any, Any]
) -> None:
# a db.statement attribute is automatically added by the RedisInstrumentor
# when this hook is called, but only includes the command name for some
# versions so we need to set it ourselves.
> add_body_attribute(span, " ".join(args), "db.statement")
E TypeError: sequence item 2: expected str instance, int found
/usr/local/lib/python3.7/site-packages/lumigo_opentelemetry/instrumentations/redis/__init__.py:28: TypeError
Workaround
To downgrade to version 1.0.117
Potential solution
Revert to using json.dumps(args) or split into two parts:
redis command which usually comes first
redis command attributes
The text was updated successfully, but these errors were encountered:
Last version of Lumigo Opentelemetry 1.0.118, the Redis instrumentation breaks Redis
ZADD
functionalityExact place
umigo_opentelemetry/instrumentations/redis/__init__.p
:fix: update opentelemetry dependencies to patch security vulnerability
Expected behavior
When calling the redis client
zadd
operation with multiple values like this:it should add all values into the ZSet.
Actual result
The operation fails with next error:
Workaround
To downgrade to version 1.0.117
Potential solution
Revert to using
json.dumps(args)
or split into two parts:The text was updated successfully, but these errors were encountered: