Skip to content

Commit 10507b0

Browse files
lzchencodeboten
authored andcommitted
Use is_recording flag in aiopg, asyncpg, dbapi, psycopg2, pymemcache, pymongo, redis, sqlalchemy instrumentations (#1212)
1 parent 5d4a5b5 commit 10507b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_instrumentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_not_recording(self):
8484
mock_span.is_recording.return_value = False
8585
mock_tracer.start_span.return_value = mock_span
8686
mock_tracer.use_span.return_value.__enter__ = mock_span
87-
mock_tracer.use_span.return_value.__exit__ = mock_span
87+
mock_tracer.use_span.return_value.__exit__ = True
8888
with patch("opentelemetry.trace.get_tracer") as tracer:
8989
tracer.return_value = mock_tracer
9090
ec2 = self.session.create_client("ec2", region_name="us-west-2")

0 commit comments

Comments
 (0)