We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8f31db + a9f3413 commit bf01666Copy full SHA for bf01666
instrumentation/opentelemetry-instrumentation-aws-lambda/tests/test_aws_lambda_instrumentation_manual.py
@@ -379,3 +379,18 @@ def test_api_gateway_http_api_proxy_event_sets_attributes(self):
379
SpanAttributes.HTTP_USER_AGENT: "agent",
380
},
381
)
382
+
383
+ def test_uninstrument(self):
384
+ AwsLambdaInstrumentor().instrument()
385
386
+ mock_execute_lambda(MOCK_LAMBDA_API_GATEWAY_HTTP_API_EVENT)
387
388
+ spans = self.memory_exporter.get_finished_spans()
389
+ self.assertEqual(len(spans), 1)
390
391
+ self.memory_exporter.clear()
392
+ AwsLambdaInstrumentor().uninstrument()
393
394
395
396
+ self.assertEqual(len(spans), 0)
0 commit comments