Skip to content

Commit 755089a

Browse files
lzchencodeboten
authored andcommitted
Use is_recording flag in aiopg, asyncpg, dbapi, psycopg2, pymemcache, pymongo, redis, sqlalchemy instrumentations (#1212)
1 parent 3ae5123 commit 755089a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-boto/tests/test_boto_instrumentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_not_recording(self):
8888
mock_span.is_recording.return_value = False
8989
mock_tracer.start_span.return_value = mock_span
9090
mock_tracer.use_span.return_value.__enter__ = mock_span
91-
mock_tracer.use_span.return_value.__exit__ = mock_span
91+
mock_tracer.use_span.return_value.__exit__ = True
9292
with patch("opentelemetry.trace.get_tracer") as tracer:
9393
tracer.return_value = mock_tracer
9494
ec2 = boto.ec2.connect_to_region("us-west-2")

0 commit comments

Comments
 (0)