File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
instrumentation/opentelemetry-instrumentation-redis
src/opentelemetry/instrumentation/redis Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -775,7 +775,6 @@ def uninstrument_client(
775775 # created instance. any pipelines created before un-instrumenting will
776776 # remain instrumented (pipelines should usually have a short span)
777777 unwrap (client , "pipeline" )
778- pass
779778 else :
780779 _logger .warning (
781780 "Attempting to un-instrument Redis connection that wasn't instrumented"
Original file line number Diff line number Diff line change @@ -408,9 +408,10 @@ def assert_span_count(self, count: int):
408408 def setUp (self ):
409409 super ().setUp ()
410410 self .instrumentor = RedisInstrumentor ()
411- self .client = FakeRedis ()
411+ self .client : FakeRedis = FakeRedis ()
412412
413- async def _redis_pipeline_operations (self , client ):
413+ @staticmethod
414+ async def _redis_pipeline_operations (client : FakeRedis ):
414415 with pytest .raises (WatchError ):
415416 async with client .pipeline (transaction = False ) as pipe :
416417 await pipe .watch ("a" )
You can’t perform that action at this time.
0 commit comments