def METHOD_NAME(self, operation: str) -> Span:
    spans = self.memory_exporter.get_finished_spans()
    self.assertEqual(1, len(spans))
    span = spans[0]
    self.assertEqual(operation, span.attributes[SpanAttributes.RPC_METHOD])
    self.assertEqual("Lambda", span.attributes[SpanAttributes.RPC_SERVICE])
    self.assertEqual("aws-api", span.attributes[SpanAttributes.RPC_SYSTEM])
    return span