Skip to content

Commit be3ca10

Browse files
committed
Adjust comment and fix one test
1 parent edca781 commit be3ca10

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

instrumentation/opentelemetry-instrumentation-redis/src/opentelemetry/instrumentation/redis/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@ def uninstrument_connection(client):
675675
if getattr(client, INSTRUMENTATION_ATTR):
676676
# for all clients we need to unwrap execute_command and pipeline functions
677677
unwrap(client, "execute_command")
678-
# pipeline was creating a pipeline and wrapping the functions of the
679-
# created instance. any pipeline created before un-instrumenting will
678+
# the method was creating a pipeline and wrapping the functions of the
679+
# created instance. any pipelines created before un-instrumenting will
680680
# remain instrumented (pipelines should usually have a short span)
681681
unwrap(client, "pipeline")
682682
pass

instrumentation/opentelemetry-instrumentation-redis/tests/test_redis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
class TestRedis(TestBase):
3838
def setUp(self):
3939
super().setUp()
40-
RedisInstrumentor().instrument(_provider=self.tracer_provider)
40+
RedisInstrumentor().instrument(tracer_provider=self.tracer_provider)
4141

4242
def tearDown(self):
4343
super().tearDown()

0 commit comments

Comments
 (0)